Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

"scripts": {
   // rest of your scripts
   "test": "mocha server/**/*.test.js --timeout 10000"
},
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Timeout #For #async #tests #ensure #returning #ensure
ADD COMMENT
Topic
Name
3+8 =