Run error replay test again new reconciler (#18628)
This is one of our few tests of an internal function. Need to import the module that corresponds to the reconciler that's being tested.
Andrew Clark committed
Apr 16, 2020 at 08:08 UTC
c12c2c4c8c24e7b7456628e327c5d80ca4ec5377
1 file changed
+2
-3
packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js
+2
-3
@@ -22,9 +22,8 @@ describe('ReactIncrementalErrorReplay-test', () => {
22
// This is the method we're going to test.
23
// If this is no longer used, you can delete this test file.;
24
25
- const assignFiberPropertiesInDEV = require('shared/ReactFeatureFlags')
26
- ? // TODO: Update this to point to the new module, once it exists
27
- require('../ReactFiber.old').assignFiberPropertiesInDEV
25
+ const assignFiberPropertiesInDEV = gate(flags => flags.new)
26
+ ? require('../ReactFiber.new').assignFiberPropertiesInDEV
27
: require('../ReactFiber.old').assignFiberPropertiesInDEV;
28
29
// Get a real fiber.