-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Migrate to React 19 #4409
base: master
Are you sure you want to change the base?
Migrate to React 19 #4409
Commits on Sep 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e4de96b - Browse repository at this point
Copy the full SHA e4de96bView commit details -
Set
@types/react
and@types/react-dom
to temporary types packages- We set the `@types/react` and `@types/react-dom` package resolutions to `npm:types-react` and `npm:types-react-dom` according to the React 19 migration guide.
Configuration menu - View commit details
-
Copy full SHA for 6ace22c - Browse repository at this point
Copy the full SHA 6ace22cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a93873 - Browse repository at this point
Copy the full SHA 0a93873View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47f95fd - Browse repository at this point
Copy the full SHA 47f95fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef3aa47 - Browse repository at this point
Copy the full SHA ef3aa47View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbde6cb - Browse repository at this point
Copy the full SHA fbde6cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05c1696 - Browse repository at this point
Copy the full SHA 05c1696View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8acd1f - Browse repository at this point
Copy the full SHA e8acd1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c82cba - Browse repository at this point
Copy the full SHA 7c82cbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba8a1e4 - Browse repository at this point
Copy the full SHA ba8a1e4View commit details -
Remove redundant
act
wrappers aroundfireEvent
method calls- According to latest documentation of `@testing-library/react`, `fireEvent` methods are already wrapped inside `act` calls making manual wrapping unnecessary.
Configuration menu - View commit details
-
Copy full SHA for 9a56382 - Browse repository at this point
Copy the full SHA 9a56382View commit details -
Workaround issue
userEvent
not working with fake timers- There currently seems to be an issue involving `sinon` fake timers used by `vitest`, `@testing-library/react` only supporting `jest` fake timers and `@testing-library/user-event` using `setTimeout` internally to simulate user actions such as button presses. Currently `@testing-library/react` only works with `jest` fake timers, which means if there are any component updates while `sinon` fake timers are running in `vitest` , `@testing-library/react` will not catch it and things start to break. - To workaround this issue, We have to setup the `user` by calling `userEvent.setup({ delay: null })`. The reason why We do this is because `@testing-library/user-event` uses `setTimeout` internally which cannot be awaited in a test while fake timers are running as it can cause the tests to indefinitely hang. So the current workaround is to disable the `delay` functionality of `userEvent` and prevent it from calling `setTimeout`. We also have to pass in `shouldAdvanceTime: true` to `vi.useFakeTimers()` as it can get around the issue of `@testing-library/react` not tracking `sinon` fake timers in `vitest`.
Configuration menu - View commit details
-
Copy full SHA for 7527bc8 - Browse repository at this point
Copy the full SHA 7527bc8View commit details -
Fix test names in
fork.test.ts
- Fixed test names in `fork.test.ts` which could cause the terminal to flicker in Windows.
Configuration menu - View commit details
-
Copy full SHA for 83ff0f1 - Browse repository at this point
Copy the full SHA 83ff0f1View commit details -
Fix issue with
console
spy insidebuildHooks.test.tsx
- `.mockReset()` should not be called in spies since it calls `.mockClear()` and returns the implementation to its **initial** form. In this case it was silencing some of the `act` related warnings emitted by `@testing-library/react` which needed to be resolved since they were calling issues. So `.mockReset()` calls on spies need to be changed to `.mockRestore()` calls since `.mockRestore()` restores the implementation to its **original** form.
Configuration menu - View commit details
-
Copy full SHA for b5fbcd8 - Browse repository at this point
Copy the full SHA b5fbcd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ced2a4d - Browse repository at this point
Copy the full SHA ced2a4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for de0ecb9 - Browse repository at this point
Copy the full SHA de0ecb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8489bb - Browse repository at this point
Copy the full SHA c8489bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for edf74cc - Browse repository at this point
Copy the full SHA edf74ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59a61b5 - Browse repository at this point
Copy the full SHA 59a61b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5e5a26 - Browse repository at this point
Copy the full SHA c5e5a26View commit details -
Configuration menu - View commit details
-
Copy full SHA for be40596 - Browse repository at this point
Copy the full SHA be40596View commit details -
Configuration menu - View commit details
-
Copy full SHA for caaab51 - Browse repository at this point
Copy the full SHA caaab51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3376ab4 - Browse repository at this point
Copy the full SHA 3376ab4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28d08d2 - Browse repository at this point
Copy the full SHA 28d08d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3f2c14 - Browse repository at this point
Copy the full SHA f3f2c14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01cb3cd - Browse repository at this point
Copy the full SHA 01cb3cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 803f2a2 - Browse repository at this point
Copy the full SHA 803f2a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50be30d - Browse repository at this point
Copy the full SHA 50be30dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a6543f6 - Browse repository at this point
Copy the full SHA a6543f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 086e59d - Browse repository at this point
Copy the full SHA 086e59dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ad0da9 - Browse repository at this point
Copy the full SHA 5ad0da9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c84ebd - Browse repository at this point
Copy the full SHA 4c84ebdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9bd487 - Browse repository at this point
Copy the full SHA b9bd487View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3bd5a7 - Browse repository at this point
Copy the full SHA c3bd5a7View commit details -
Fix issues related to
console
spies in `immutableStateInvariantMidd……leware.test.ts`
Configuration menu - View commit details
-
Copy full SHA for 15c68e5 - Browse repository at this point
Copy the full SHA 15c68e5View commit details -
Fix issues related to
console
spies in `serializableStateInvariantM……iddleware.test.ts`
Configuration menu - View commit details
-
Copy full SHA for 8899359 - Browse repository at this point
Copy the full SHA 8899359View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd502fb - Browse repository at this point
Copy the full SHA bd502fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a53abba - Browse repository at this point
Copy the full SHA a53abbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f9946f - Browse repository at this point
Copy the full SHA 5f9946fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f8a6b7 - Browse repository at this point
Copy the full SHA 7f8a6b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0a2a99 - Browse repository at this point
Copy the full SHA d0a2a99View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad40fbc - Browse repository at this point
Copy the full SHA ad40fbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20de5a3 - Browse repository at this point
Copy the full SHA 20de5a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 662ea44 - Browse repository at this point
Copy the full SHA 662ea44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 201990f - Browse repository at this point
Copy the full SHA 201990fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a36a02 - Browse repository at this point
Copy the full SHA 5a36a02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6054697 - Browse repository at this point
Copy the full SHA 6054697View commit details -
Add
areErrorsEqual
equality tester- This was done to make sure `toHaveBeenCalledWith` will fail if we pass in the wrong Error constructor. For example the assertion will now fail if we pass in an `Error` instead of a `TypeError`.
Configuration menu - View commit details
-
Copy full SHA for 0b27310 - Browse repository at this point
Copy the full SHA 0b27310View commit details -
Configuration menu - View commit details
-
Copy full SHA for c627876 - Browse repository at this point
Copy the full SHA c627876View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9887f34 - Browse repository at this point
Copy the full SHA 9887f34View commit details -
Configuration menu - View commit details
-
Copy full SHA for f91d181 - Browse repository at this point
Copy the full SHA f91d181View commit details -
Remove
jest-snapshot
fromresolutions
field- This was done because it was causing the unit tests in example workspaces to fail.
Configuration menu - View commit details
-
Copy full SHA for 10190d4 - Browse repository at this point
Copy the full SHA 10190d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b869bac - Browse repository at this point
Copy the full SHA b869bacView commit details -
Configuration menu - View commit details
-
Copy full SHA for e340937 - Browse repository at this point
Copy the full SHA e340937View commit details -
Configuration menu - View commit details
-
Copy full SHA for d64caae - Browse repository at this point
Copy the full SHA d64caaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23c32ed - Browse repository at this point
Copy the full SHA 23c32edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60e7bff - Browse repository at this point
Copy the full SHA 60e7bffView commit details