react-redux
react-redux copied to clipboard
test: Bump jest to 27.x
Switches to modern timers (including missing mocks) which have better support in the latest testing library versions which you'll probably want to use to test React 18.
✔️ Deploy Preview for react-redux-docs ready!
🔨 Explore the source changes: d0a86c069e77d23fe9c84fb74eff25f695539d96
🔍 Inspect the deploy log: https://app.netlify.com/sites/react-redux-docs/deploys/615182142903c90008a47d2e
😎 Browse the preview: https://deploy-preview-1733--react-redux-docs.netlify.app
I just merged in the TL/R update, so maybe that will fix the issue here? I'm not seeing where it's coming from, because I only have the line of the error, not the full trace.
I just merged in the TL/R update, so maybe that will fix the issue here? I'm not seeing where it's coming from, because I only have the line of the error, not the full trace.
The react-native preset is incompatible with jest 27. facebook/react has the same issue. I'll do some digging to find out what the status of jest 27 support for the react-native jest preset is.
Update: Blocked by https://github.com/facebook/fbjs/issues/441
What's the actual issue this PR is supposed to fix?
What's the actual issue this PR is supposed to fix?
Using modern timers (including missing mocks) which have better support in the latest testing library versions which you'll probably want to use to test React 18.
I till see the same issue in React-Native with jest 27.1.1, Is resolution? This is really frustating.
`est suite failed to run
TypeError: Cannot destructure property 'config' of 'options' as it is undefined.
at Object.getCacheKey (node_modules/@jest/create-cache-key-function/build/index.js:62:12)
at ScriptTransformer._getCacheKey (node_modules/@jest/transform/build/ScriptTransformer.js:280:41)
at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:351:27)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:588:32)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:758:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:815:19)`
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit d0a86c069e77d23fe9c84fb74eff25f695539d96:
Sandbox | Source |
---|---|
Vanilla | Configuration |
Vanilla Typescript | Configuration |
Did finally switch to Jest 29 over in the v9.0-integration
branch