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

feat(jest): support jest 27 transformerConfig #396

Merged
merged 1 commit into from Apr 23, 2021

Conversation

sod
Copy link
Contributor

@sod sod commented Apr 23, 2021

fixes: @swc-node/jest ignores the config provided with the transformer when using jest@27

jestjs/jest#10926 made a breaking change for upcoming jest@27 that renders the current config retrieval non functional. jestConfig.transform will be undefined and jestConfig.transformerConfig will hold the configuration instead.

See also new TransformerOptions type https://github.com/facebook/jest/blob/a28f14a9dbd4621eb2e848034cdfdfec28ff9866/packages/jest-transform/src/types.ts#L63

@Brooooooklyn Brooooooklyn merged commit a827408 into swc-project:master Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants