Skip to content

Issues in testing #161

@ksraj123

Description

@ksraj123

Describe the bug

  • EADDRINUSE, error address in use error in all tests files after the first test file
  • In addition to issues described in Fix failing test cases in the user route. #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions