Skip to content
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

fix: babel-jest createTransformer issue #354

Closed
wants to merge 1 commit into from

Conversation

fanck0605
Copy link

@fanck0605 fanck0605 commented Dec 19, 2021

create-react-app v5 uses babel-jest v27. The way of exporting babel-jest has changed

See jestjs/jest#11444

craco test with cra5

Determining test suites to run...

  ● Test suite failed to run

    TypeError: babelJest.createTransformer is not a function

      at createJestBabelTransform (node_modules/@craco/craco/lib/features/jest/create-jest-babel-transform.js:56:22)
      at Object.<anonymous> (node_modules/@craco/craco/lib/features/jest/jest-babel-transform.js:9:8)
      at node_modules/@jest/transform/build/ScriptTransformer.js:383:73

@fanck0605 fanck0605 closed this Dec 19, 2021
@garycourt
Copy link

Why was this closed? I am also encountering this issue, and this looks to be the fix. Would like to get this published to unblock my upgrade to CRA5.

@fanck0605
Copy link
Author

see #332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants