-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 26 compatibility: replace require.requireActual
with jest.requireActual
#10631
Comments
https://github.com/facebook/jest/releases/tag/v26.0.0 Jest 26 has now been released. Would be great for storyshots to be updated 🙏 |
* Update dependencies * Fix deprecated use of require.requireActual See storybookjs/storybook#10631 * Update test snapshots * Fix use of deprecated @vue/test-utils methods
Yee-haw!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.3 containing PR #10642 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
@shilman can you please merge the fix also to stable version (v5)? As I assume it will still take some time before v6 becomes stable and this issue block update of jest. Thanks |
@jakubriedl ok will try to special-case this @SimenB do we need to upgrade |
You don't need to upgrade, |
Great Caesar's ghost!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.4 containing PR #10669 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
* Update dependencies * Fix deprecated use of require.requireActual See storybookjs/storybook#10631 * Update test snapshots * Fix use of deprecated @vue/test-utils methods
storybook is using a removed jest API related: storybookjs/storybook#10631
after upgrading to latest storyshots and jest, jest-cli, and babel-jest (v 26.0.1), I get this error, which I wasn't having before:
I'll try to debug it on my own, but just wondering if anyone else has run into this and if this is something that was introduced or something misconfigured on my end. I see that it is throwing from |
@shilman did this get into 5.3.19? |
@Hypnosphi Not yet. I was just trying to do a quick security fix. Do you want me to get this in to 5.3.20? |
Yes please |
Are there still plans to fix this in 5.3.20? |
@liamkeily Unfortunately it was not trivial to back port it, so I put the energy into shipping 6.0 instead, which is now released. Please consider upgrading! |
Describe the bug
Storyshot depends on
require.requireActual
- this has been removed from Jest 26. Please usejest.requireActual
instead.To Reproduce
Expected behavior
Should work
Screenshots
Code snippets
N/A
System:
N/A
Additional context
jestjs/jest#9854
The text was updated successfully, but these errors were encountered: