Skip to content

Commit 650c622

Browse files
committed
fix: partially revert jest setup config removal to fix regression tests
1 parent 596827f commit 650c622

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

scripts/jest/devtools/config.build-devtools-regression.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ if (REACT_VERSION) {
3131
'^react-dom/client$'
3232
] = `<rootDir>/build/${NODE_MODULES_DIR}/react-dom`;
3333
}
34+
35+
setupFiles.push(require.resolve('./setupTests.build-devtools-regression'));
3436
}
3537

3638
module.exports = {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
// Regression tests use a React DOM profiling, so we need
4+
// to replace these tests with scheduler/tracing-profiling
5+
jest.mock('scheduler/tracing', () => {
6+
return jest.requireActual('scheduler/tracing-profiling');
7+
});

0 commit comments

Comments
 (0)