Skip to content
This repository has been archived by the owner on Jun 18, 2022. 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

jiyuujin 2021 Product issues automation moved this from ToDo (Easy) to Done Dec 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant