mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
I do this by simply renaming the secret export name in the "subset" bundle and this renamed version is what the FlightServer uses. This requires us to be more diligent about always using the correct instance of "react" in our tests so there's a bunch of clean up for that.
6 lines
144 B
JavaScript
6 lines
144 B
JavaScript
'use strict';
|
|
|
|
jest.mock('scheduler', () => jest.requireActual('scheduler/unstable_mock'));
|
|
|
|
global.__unmockReact = () => jest.unmock('react');
|