dillon1000/react

Commit

rewrite test act helpers based on react/#15591

This simplifies your test helpers to loop until all timers are flushed (including the ones that get queued after updates), and works in concurrent mode. I also renamed actSuspense to actAsync to be clearer.
Browse files
Changed paths4 files
First-parent comparison
M src/__tests__/profiling-test.js ModifiedM src/__tests__/profilingCharts-test.js ModifiedM src/__tests__/profilingCommitTreeBuilder-test.js ModifiedM src/__tests__/utils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…