Set 'timeout' globally?
See original GitHub issueIn mocha, we can set global timeout by adding test/mocha.opts
file:
--timeout 5000
Is there a way to do this in ember-mocha?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
setTimeout() - Web APIs | MDN
The global setTimeout() method sets a timer which executes a function or specified piece of code once the timer expires.
Read more >Setting and using a single Global setTimeout? - Stack Overflow
Use a global timeout which all of your other functions derive timing from. This will make everything run faster, and be easier to...
Read more >How to use setTimeout function in Global - Javascript - Tabnine
global.setTimeout(() => { this.setState({
Read more >global-timeout
Default. The timeout time is 10 seconds. The system does not play voice prompts for input timeouts and terminates the call after three...
Read more >Js.Global | ReScript API
Provide bindings to JS global functions in global namespace. ... Identify timeout started by Js.Global.setTimeout ... setTimeout(work, mins * 60 * 1000)) } ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those looking to make this work: do this in your
tests/test-helper.js
file.@wongpeiyi 's comment was correct, but I had to figure out how to grab mocha from the ES6 import.
@rwjblue or other maintainers, I think we can close this issue.
I could do this in my test-helper.js