mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
We have behaviour divergence for act() between prod and dev (specifically, act() + concurrent mode does not flush fallbacks in prod. This doesn't affect anyone in OSS yet) We also don't have a good story for writing tests in prod (and what from what I gather, nobody really writes tests in prod mode). We could have wiped out act() in prod builds, except that _we_ ourselves use act() for our tests when we run them in prod mode. This PR is a compromise to all of this. We will log a warning if you try to use act() in prod mode, and we silence it in our test suites. |
||
|---|---|---|
| .. | ||
| matchers | ||
| spec-equivalence-reporter | ||
| typescript | ||
| config.base.js | ||
| config.build.js | ||
| config.source-persistent.js | ||
| config.source.js | ||
| dont-run-jest-directly.js | ||
| noHaste.js | ||
| preprocessor.js | ||
| setupEnvironment.js | ||
| setupHostConfigs.js | ||
| setupTests.build.js | ||
| setupTests.js | ||
| setupTests.persistent.js | ||
| shouldIgnoreConsoleError.js | ||