mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:35:06 +00:00
* Remove Fiber Jest project * Remove Stack reconciler and ReactDOMStack code * Fix tests depending on Stack internals * Fix Flow
15 lines
503 B
JavaScript
15 lines
503 B
JavaScript
'use strict';
|
|
|
|
// We want to globally mock this but jest doesn't let us do that by default
|
|
// for a file that already exists. So we have to explicitly mock it.
|
|
jest.mock('ReactFeatureFlags', () => {
|
|
const flags = require.requireActual('ReactFeatureFlags');
|
|
return Object.assign({}, flags, {
|
|
disableNewFiberFeatures: true,
|
|
});
|
|
});
|
|
|
|
// Error logging varies between Fiber and Stack;
|
|
// Rather than fork dozens of tests, mock the error-logging file by default.
|
|
jest.mock('ReactFiberErrorLogger');
|