dillon1000/react

Commit

Use require() to implement script src in tests (#26717)

We currently use rollup to make an adhoc bundle from the file system
when we're testing an import of an external file.

This doesn't follow all the interception rules that we use in jest and
in our actual builds.

This switches to just using jest require() to load these. This means
that they effectively have to load into the global document so this only
works with global document tests which is all we have now anyway.
Browse files
Changed paths4 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFloat-test.js ModifiedM packages/react-dom/src/test-utils/FizzTestUtils.js ModifiedM scripts/jest/ReactDOMServerIntegrationEnvironment.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…