sequelize / express-example

A proposal for the usage of Sequelize within an Express.JS application.
MIT License
2.5k stars 770 forks source link

Unit test hanging or sequelize doesn't close connection #80

Closed jmaicaaan closed 6 years ago

jmaicaaan commented 6 years ago

I've created a unit test for the User model creation, after running npm test to run the test suite. The unit test is hanging and doesn't not exit. You can see the code here at my:

jmaicaaan commented 6 years ago

Will close this one, issue is that as we are requiring the app instance in the unit test for supertest we need to separate the starting of server into another file. See repo commit change for more info. Thanks