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(react): make React schematics use babel-jest by default #3154

Merged
merged 2 commits into from Jun 11, 2020

Conversation

BigAB
Copy link
Contributor

@BigAB BigAB commented Jun 10, 2020

The babelJest option was removed from the React application
and library schematics and set to true by default

Resolves #2365 because going forward React projects (apps + libraries) would not use ts-jest but rather a properly configured babel-jest
Resolves #1720 for React projects at least

@BigAB BigAB requested a review from jaysoo June 10, 2020 23:26
@BigAB BigAB added the scope: react Issues related to React support for Nx label Jun 10, 2020
@BigAB BigAB force-pushed the 2365-use-babel-jest-for-react-by-default branch from 837d68a to 2c754e2 Compare June 11, 2020 16:00
The babelJest option was removed from the React application
and library schematics and set to true by default

ISSUES CLOSED: 2365
@BigAB BigAB force-pushed the 2365-use-babel-jest-for-react-by-default branch from 2c754e2 to 3b4055e Compare June 11, 2020 19:10
@BigAB BigAB self-assigned this Jun 11, 2020
@jaysoo jaysoo merged commit 2700cb7 into nrwl:master Jun 11, 2020
Copy link
Contributor

@Hotell Hotell left a comment

Choose a reason for hiding this comment

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

just a thought:

I'd suggest that this change would ship with migration script so consumers don't use something that isn't supported anymore.

Example:

  • one may set babelJest as default within workspace schematic configuration, which with this change is obsolete and doesn't do anything.
  • Also having this turned on by default without opt out may be a breaking change for some consumers that may be actively using ts-jest with react.

@BigAB BigAB deleted the 2365-use-babel-jest-for-react-by-default branch June 23, 2020 00:26
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: react Issues related to React support for Nx
Projects
None yet
3 participants