react-redux icon indicating copy to clipboard operation
react-redux copied to clipboard

test: Bump jest to 27.x

Open eps1lon opened this issue 3 years ago • 7 comments

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.

eps1lon avatar Jun 13 '21 20:06 eps1lon

✔️ 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

netlify[bot] avatar Jun 13 '21 20:06 netlify[bot]

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.

timdorr avatar Jun 14 '21 13:06 timdorr

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

eps1lon avatar Jun 14 '21 13:06 eps1lon

What's the actual issue this PR is supposed to fix?

markerikson avatar Sep 04 '21 18:09 markerikson

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.

eps1lon avatar Sep 05 '21 08:09 eps1lon

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)`

NitinChronext avatar Sep 10 '21 08:09 NitinChronext

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

codesandbox-ci[bot] avatar Sep 27 '21 08:09 codesandbox-ci[bot]

Did finally switch to Jest 29 over in the v9.0-integration branch

markerikson avatar Jun 22 '23 01:06 markerikson