Skip to content

Commit c12c2c4

Browse files
authored
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.
1 parent 7b4403c commit c12c2c4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ describe('ReactIncrementalErrorReplay-test', () => {
2222
// This is the method we're going to test.
2323
// If this is no longer used, you can delete this test file.;
2424

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
2827
: require('../ReactFiber.old').assignFiberPropertiesInDEV;
2928

3029
// Get a real fiber.

0 commit comments

Comments
 (0)