Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

React 17 & Jest 27 #699

Closed
jiyuujin opened this issue Dec 22, 2021 · 1 comment
Closed

React 17 & Jest 27 #699

jiyuujin opened this issue Dec 22, 2021 · 1 comment

Comments

@jiyuujin
Copy link
Owner

No description provided.

@jiyuujin
Copy link
Owner Author

Fix jest-preprocess.js

const babelOptions = {
  presets: ['babel-preset-gatsby', '@babel/preset-typescript'],
}

const babelJestMd = require('babel-jest')
const babelJest = babelJestMd.__esModule ? babelJestMd.default : babelJestMd

module.exports = babelJest.createTransformer({
  ...babelOptions,
})

ref: jestjs/jest#11444

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

No branches or pull requests

1 participant