social-platform-donut-backend
social-platform-donut-backend copied to clipboard
Issues in testing
Describe the bug
- EADDRINUSE, error address in use error in all tests files after the first test file
- In addition to issues described in #152 user route has another failing test case which 400 expected 200
- Test cases failing in org route, multiple 404s
- Test cases failing in proposal route
- Jest does not exit
To Reproduce Steps to reproduce the behaviour:
-
npm run test
Expected behaviour
- EADDRINUSE error should not be present in any test file
- Failing test case in user route should get expected value 200 instead of current 400
- All test cases should pass
- Jest should exit successfully upon completion of tests whatever may be the results.
Screenshots
-
EADDRINUSE
-
400 in user route
-
Erros in org route
-
Test cases failing in proposal route
-
Jest not exiting
Additional context Working on this.
Fixed in #160
Include this too #137
Working on it