dillon1000/react

Commit

[tests] Fix flaky flight tests (#35513)

Flights tests are failing locally and in CI non-deterministically
because we're not disabling async hooks after tests, and GC can clear
WeakRefs non-deterministically.

This PR fixes the issue by adding an afterEach to disable installed
hooks, and normalizing the `value` to `value: {value: undefined}}` when
snapshotting.
Browse files
Changed paths2 files
First-parent comparison
M packages/internal-test-utils/debugInfo.js ModifiedM scripts/jest/setupTests.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…