ehemmerlin (3) [Avatar] Offline
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 (68) [Avatar] Offline
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!