dillon1000/react

Commit

Move console mocks to internal-test-utils (#28710)

Moving this to `internal-test-utils` so I can add helpers in the next PR
for:
- assertLogDev
- assertWarnDev
- assertErrorDev

Which will be exported from `internal-test-utils`. This isn't strictly
necessary, but it makes the factoring nicer, so internal-test-until
doesn't need to depend on `scripts/jest`.
Browse files
Changed paths7 files
First-parent comparison
M packages/internal-test-utils/__tests__/ReactInternalTestUtils-test.js ModifiedA packages/internal-test-utils/consoleMock.js AddedR scripts/jest/shouldIgnoreConsoleError.js →packages/internal-test-utils/shouldIgnoreConsoleError.js RenamedR scripts/jest/shouldIgnoreConsoleWarn.js →packages/internal-test-utils/shouldIgnoreConsoleWarn.js RenamedM packages/react-dom/src/__tests__/utils/ReactDOMServerIntegrationTestUtils.js ModifiedM scripts/jest/matchers/toWarnDev.js ModifiedM scripts/jest/setupTests.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…