Skip to content

feat: export babel-preset-jest as a function#7203

Merged
SimenB merged 2 commits into
jestjs:masterfrom
SimenB:babel-preset-func
Oct 18, 2018
Merged

feat: export babel-preset-jest as a function#7203
SimenB merged 2 commits into
jestjs:masterfrom
SimenB:babel-preset-func

Conversation

@SimenB

@SimenB SimenB commented Oct 18, 2018

Copy link
Copy Markdown
Member

Summary

Fixes #6126

Test plan

Green CI

Comment thread CHANGELOG.md
- `[jest-runtime]` Fix missing coverage when using negative glob pattern in `testMatch` ([#7170](https://github.com/facebook/jest/pull/7170))
- `[*]` Ensure `maxWorkers` is at least 1 (was 0 in some cases where there was only 1 CPU) ([#7182](https://github.com/facebook/jest/pull/7182))
- `[jest-runtime]` Fix transform cache invalidation when requiring a test file from multiple projects ([#7186](https://github.com/facebook/jest/pull/7186))
- `[babel-preset-jest]` [**BREAKING**] Export a function instead of an object for Babel 7 compatibility ([#7203](https://github.com/facebook/jest/pull/7203))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking for people doing require like we used to, not for people just doing "babel-preset-jest" as a string

@SimenB
SimenB merged commit 6a7e6d6 into jestjs:master Oct 18, 2018
@SimenB
SimenB deleted the babel-preset-func branch October 18, 2018 08:56
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Babel 7 support to babel-preset-jest

3 participants