We need to create a session for a test i.e. We login a seeded user then we can test logged in user features.
We cannot do that right now because superagent and supertest-session do not work with our code since it doesnt wait for our db to connect hence nearly all test fail.
Possible solutions
Use a local mongodb to run tests ( we need to implement this sometime anyway )
We need to create a session for a test i.e. We login a seeded user then we can test logged in user features. We cannot do that right now because superagent and supertest-session do not work with our code since it doesnt wait for our db to connect hence nearly all test fail.
Possible solutions