Skip to content

Commit a83ac3e

Browse files
committed
avoid reaching into build
1 parent 64840ba commit a83ac3e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/jest-core/src/__tests__/watch.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ describe('Watch mode flows', () => {
111111

112112
beforeEach(() => {
113113
isInteractive = true;
114-
jest.doMock('jest-util/build/isInteractive', () => isInteractive);
114+
jest.doMock('jest-util', () => {
115+
const original = jest.requireActual('jest-util');
116+
return {
117+
...original,
118+
isInteractive: () => isInteractive,
119+
};
120+
});
115121
watch = require('../watch').default;
116122
const config = {
117123
rootDir: __dirname,

0 commit comments

Comments
 (0)