dillon1000/react
Commit
Browse files Warn about unsafe toWarnDev() nesting in tests (#12457)
* Add lint run to warn about improperly nested toWarnDev matchers * Updated tests to avoid invalid nesting
Changed paths8 files
First-parent comparison.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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…