-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Feature Request] Storybook default tests timeouts must accept overrides #300
Comments
Maybe something related, how can I configure jest timeouts for all tests? Our Jenkins is really slow and timesout regularly, so I would like to increase the general timeout. |
I think you can eject and override it from there: |
Ran into a similar issue and I found a way to override the jest config globally without ejecting. So I created a copy of it in const { getJestConfig } = require('@storybook/test-runner');
/**
* @type {import('@jest/types').Config.InitialOptions}
*/
module.exports = {
// The default configuration comes from @storybook/test-runner
...getJestConfig(),
/** Add your own overrides below
* @see https://jestjs.io/docs/configuration
*/
testTimeout: 30000,
}; Here I'm increasing the timeout, but you can adjust any other param you need. |
Hello team, Do we have any ETA for this issue fix on the storybook side? I am also facing the same issue. Thanks, |
Hey everyone! Thanks for opening this issue. I can definitely understand the confusion, thinking that I will update the docs and provide an example for this. Thank you! |
@yannbf so there is no way to change the timeout for one test? That sounds like not-planned rather than completed. |
We are getting sometime the below error and that is not resolving by Jest Config. Is there any recommendation found for overriding the playwright timeout part of testRunner. page.goto timeout 30000ms exceeded playwright |
🚀 Issue was released in |
Hey @vchandran8 We're running into this too. Wondering if you ever found a solution to your issue? |
I also experienced this on |
Is your feature request related to a problem? Please describe
So, i have a long running test and I want to be able to override the global timeout defined in the storybook config
Describe the solution you'd like
the error suggestion says
I would just like this one to work
FYI: the imports for
jest
looks like this:import { jest } from "@storybook/jest";
Describe alternatives you've considered
Parameters
for that particularStory
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
Answer is actually maybe? I am not sure if i have enough knowledge to be of help - only been doing storybook for the past 3 months - besides, i'm a golang dev :P
The text was updated successfully, but these errors were encountered: