Hojoon LEE
Hojoon LEE
By the way, I'm trying to solve this problem by making supertest agent to singleton pattern.
I have this same issue too..
> @voiddeveloper Your custom `.listen` method needs to return the _express application_*. Is there any method to use supertest without returning express application?
It can be fixed by giving "http.Server" type parameter to request function. therefore, app.ts should return http.Server to solve that problem. @voiddeveloper
I think I resolved by adding types in tsconfig.json ```json { "compilerOptions": { ... "types": ["@types/jest", "@types/jest-expect-message"], .... } ``` and also disabling rules of eslint. (jest/valid-expect)
Merged #11597 just before, and currently testing on local computer.