You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting '__awaiter' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer Error in setup.js
#22
Open
thlee1122 opened this issue
Jan 11, 2021
· 3 comments
Hello
When I run the yarn test, I am getting the following error in my terminal.
`Test suite failed to run
It looks like it is throwing error in my setup.js where I have
const app= await startServer();
This is my current setup.js file.
`import { startServer } from "../startServer";
export const setup = async () => {
const app= await startServer();
const addr = app.address();
let port: any = '';
if(typeof addr === 'string') {
port = addr
} else {
port = addr?.port;
}
process.env.TEST_HOST =
http://127.0.0.1:${port}
;};`
How do you resolve this issue?
Could you please help me with this?
The text was updated successfully, but these errors were encountered: