dillon1000/react

Commit

Warn about unsafe toWarnDev() nesting in tests (#12457)

* Add lint run to warn about improperly nested toWarnDev matchers
* Updated tests to avoid invalid nesting
Browse files
Changed paths8 files
First-parent comparison
M .eslintrc.js ModifiedM packages/react-dom/src/__tests__/ReactCompositeComponent-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMTextarea-test.js ModifiedM packages/react-dom/src/__tests__/ReactServerRendering-test.js ModifiedA scripts/eslint-rules/__tests__/no-to-warn-dev-within-to-throw-test.internal.js AddedM scripts/eslint-rules/index.js ModifiedA scripts/eslint-rules/no-to-warn-dev-within-to-throw.js AddedM scripts/jest/matchers/__tests__/toWarnDev-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…