-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update react-scripts and Typescript to version 4 #85
Conversation
CRA 4 defaults this to true, which broke jest-mock-axios and therefore every test we have.
This fixes a type error we were getting on deleting window.document.cookie, which is invalid, since that field is not optional.
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
==========================================
- Coverage 59.55% 59.54% -0.02%
==========================================
Files 63 63
Lines 1533 1535 +2
Branches 388 390 +2
==========================================
+ Hits 913 914 +1
Misses 588 588
- Partials 32 33 +1
Continue to review full report at Codecov.
|
The client manifest generation script relies on export default being there, so we just ignore the eslint rule.
This avoids the eslint error we were getting in config.ts before, and makes the manifest generation code less fragile
size-limit report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor formatting stuff, then should be good to go
Turns out I had format on save disabled in VS Code for some reason, which explains why those format issues got through. |
So it looks like the security check got disabled because of inactivity. It should be good to merge anyways. |
This PR updates react-scripts and Typescript to major version 4.
The following changes were required to deal with breaking changes:
eslint
to avoid conflicts with the versionreact-scripts
provides. Oureslintrc
has been moved topackage.json
, where the docs recommend ESLint configuration is done.'react-router-dom
Link
s, since the issue we were trying to work around has been fixed.react-refresh
looking for$$typeof
on every export. This should be temporary until we deliver a more lasting fix to the errors proxy.resetMocks
tofalse
inpackage.json
. CRA 4 changed this option totrue
by default which breaksjest-mock-axios
. Tracking issue here.config.ts
file, and makes the manifest generation code less fragile.