mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
* Added toWarnInDev matcher and connected to 1 test * Added .toLowPriorityWarnDev() matcher * Reply Jest spy with custom spy. Unregister spy after toWarnDev() so unexpected console.error/warn calls will fail tests. * console warn/error throws immediately in tests by default (if not spied on) * Pass-thru console message before erroring to make it easier to identify * More robustly handle unexpected warnings within try/catch * Error message includes remaining expected warnings in addition to unexpected warning |
||
|---|---|---|
| .. | ||
| matchers | ||
| spec-equivalence-reporter | ||
| typescript | ||
| config.build.js | ||
| config.source.js | ||
| noHaste.js | ||
| preprocessor.js | ||
| setupEnvironment.js | ||
| setupTests.js | ||