I'm submitting a network request in a test case, but this sometimes takes longer than 2 seconds (the default timeout).
How do I increase the timeout for a single test case?
mocha.js
I'm submitting a network request in a test case, but this sometimes takes longer than 2 seconds (the default timeout).
How do I increase the timeout for a single test case?
Best Answer
Here you go: http://mochajs.org/#test-level
For arrow function use as follows: