mosh-hamedani / vidly-api-node

308 stars 285 forks source link

Tests fail #1

Closed shady-abdelhamid closed 5 years ago

shady-abdelhamid commented 5 years ago

when two integration tests run using same port. one of them gets listen EADDRINUSE :::3900

steps to reproduce

  1. clone
  2. npm i
  3. mongod
  4. node seed.js
  5. npm test

I'm using

nflaig commented 5 years ago

In package.json line 9 you have to add the --runInBand flag to the test script.

shady-abdelhamid commented 5 years ago

thanks @nflaig that fixed my problem.