dillon1000/react

Commit

[tests] Disallow unasserted console.log (#28708)

Followup from https://github.com/facebook/react/pull/28693 and
https://github.com/facebook/react/pull/28680.

In CI, we fail the test for any unasserted console.log. In DEV, we don't
fail, but you can still use the matchers and we'll assert on them.
Browse files
Changed paths3 files
First-parent comparison
M scripts/jest/matchers/__tests__/toWarnDev-test.js ModifiedM scripts/jest/matchers/toWarnDev.js ModifiedM scripts/jest/setupTests.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…