dillon1000/react
Commit
Browse files 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`.
Changed paths7 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…