-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest: passing jasmine Timeout in all tests #5247
Comments
Thanks for the response. I tried created a setup file.js And then I tried to call this file I'm setuptestframework But somehow it stilll gave me a error for Async callback Let me know if I am missing something here.. |
Don't require jasmine, use |
(Please use |
Future references, testSetupFile.js: // jest.config.js
module.exports = {
setupTestFrameworkScriptFile: './jest.setup.js'
}
// jest.setup.js
jest.setTimeout(10000) |
Doesn't work, url is dead |
I'm doing what @frangeris suggested and I'm not seeing my tests timeout increased- they're still timing out like they were before. Am I missing something? Is that still the best way to globally update timeouts? |
I can confirm this does not work (anymore?), with Jest v24.7.1. I'm using this configuration: // jest.config.js
module.exports = {
setupFiles: [
'<rootDir>/test/setup.js'
]
}; // test/setup.js
console.log('set timeout');
jest.setTimeout(...); Note that Thanks! |
Hum, after some investigations I found this while looking at the definition of
|
@Kocal - |
Oh, okay. I was planning to use #8456 but I will give Thanks :) |
|
* use path.join() * lighten env tests * test: set default timeout to 35000 ms * chore: use "setupFilesAfterEnv" instead of "setupFiles" jestjs/jest#5247 (comment) * fix(test): timeout vue 50000 * fix failing tests * fix ansi
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am executing jest test. I don't want to specify jasmine.DefaultTimeoutInterval in all my test..
Is there any way where I can just specify once instead of giving in all my tests?
The text was updated successfully, but these errors were encountered: