social-platform-donut-backend icon indicating copy to clipboard operation
social-platform-donut-backend copied to clipboard

Issues in testing

Open ksraj123 opened this issue 4 years ago • 3 comments

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:

  1. 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 Screenshot from 2020-07-29 03-44-00

  • 400 in user route Screenshot from 2020-07-29 03-52-20

  • Erros in org route Screenshot from 2020-07-29 03-46-26

  • Test cases failing in proposal route Screenshot from 2020-07-29 03-42-44

  • Jest not exiting Screenshot from 2020-07-29 03-45-24

Additional context Working on this.

ksraj123 avatar Jul 29 '20 06:07 ksraj123

Fixed in #160

ksraj123 avatar Jul 30 '20 08:07 ksraj123

Include this too #137

Rupeshiya avatar Aug 01 '20 20:08 Rupeshiya

Working on it

Rupeshiya avatar Aug 11 '20 04:08 Rupeshiya