-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Upgrade react-scripts to v4.0.x #2454
Comments
@jackcmeyer I'm new here, let me have a try. I found that the react-script v4.0x requires jest v26.6.0. But it seems we have failed in upgrade jest a few times. Do you have any information about this? |
Actually react-script v4.0 has jest already you don't need to have that dependency anymore..I was taking a look as well and it seems that after the update I found that we would need to ignore some eslint rules in sake of typescript ones.
Even like this some tests are failing maybe some other rules or even the tests them selves I notice per example that |
I've started working on this after trying it out on the Convert to RTL branch. Currently, I am having a lot of issues with the tests, and I don't seem to know enough to reason about them. Namely a lot of:
And then the real kicker, that completely kills the test run:
EDIT: Got some help (@mpeyper) and it seems to be related to tests hovering around the 5s mark for test running time. |
I may revisit this after the RTL conversion, to see if it makes a difference. At the moment, 80+ tests fail for various reasons. And the number changes each time all the tests are run... |
Yes I think the way the tests are being tested might have some race conditions happening so maybe with that conversion to RTL would solve that and would make upgrade to react 17 easier as well. I managed to have around 46 tests failing but I still have those errors that you mentioned above |
React scripts was recently upgraded to v4.0.0. This issue is to track and finish migrating HospitalRun to react-scripts v4.0.x. Dependabot couldn't do this on its own due to a failing build: #2437.
Things to consider:
npm start
should start the appnpm test
should successfully run the test suitenpm run lint
should continue to report linting errors.The text was updated successfully, but these errors were encountered: