Skip to content

Commit

Permalink
avoid reaching into build
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jan 28, 2023
1 parent 64840ba commit a83ac3e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/jest-core/src/__tests__/watch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ describe('Watch mode flows', () => {

beforeEach(() => {
isInteractive = true;
jest.doMock('jest-util/build/isInteractive', () => isInteractive);
jest.doMock('jest-util', () => {
const original = jest.requireActual('jest-util');
return {
...original,
isInteractive: () => isInteractive,
};
});
watch = require('../watch').default;
const config = {
rootDir: __dirname,
Expand Down

0 comments on commit a83ac3e

Please sign in to comment.