The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

ehemmerlin (3) [Avatar] Offline
#1
In case it can help, as mentionned in "Writing acceptance tests" video, I had to add a timeout to make the npm command work, but I also had to add a timeout to the npm integration-test command to make it work. Without it the last test would'nt pass.

"integration-test": "env TEST_MODE=handler ./node_modules/.bin/mocha tests/test_case --reporter spec --timeout 5000"


Thanks for this complete and precise content you are providing.
Yan Cui (73) [Avatar] Offline
#2
Yes! The tests can sometimes take longer because we're making a number of API calls to setup the test users, etc. so it times out occasionally, not sure if I mentioned it in the testing unit.

And thank you, glad you're enjoying the course!