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

GCW-3506 Update to react scripts 4 #28

Merged
merged 3 commits into from
Feb 9, 2021

Conversation

BboyStatix
Copy link
Contributor

@BboyStatix BboyStatix commented Feb 8, 2021

Ticket Link

https://jira.crossroads.org.hk/browse/GCW-3506

What does this PR do?

Updates React Scripts to v4. Besides, new features, it also fixes an issue where creating a Tuple type would result in the following error Line 0: Parsing error: Cannot read property 'map' of undefined indirectly mentioned here facebook/create-react-app#9515

The react-scripts update also upgrades the jest version to v26 and overrides the default value of resetMocks from false to true. This causes a lot of tests to fail, so to keep the previous behaviour, we override this setting in package.json.

This particular change is mentioned here
facebook/create-react-app#7899
It is also mentioned in the jest repository at jestjs/jest#9047
And on Twitter: https://twitter.com/kentcdodds/status/1182744387190607872
Seems like a controversial decision as we also have people wanting the change reverted over here:
facebook/create-react-app#9935

@BboyStatix BboyStatix self-assigned this Feb 8, 2021
@BboyStatix BboyStatix merged commit 246bcf0 into main Feb 9, 2021
@BboyStatix BboyStatix deleted the GCW-3506-update-to-react-scripts-4 branch February 10, 2021 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants