diff --git a/packages/jest-circus/src/__mocks__/testUtils.ts b/packages/jest-circus/src/__mocks__/testUtils.ts index d77ea4153af0..5bd876d4b604 100644 --- a/packages/jest-circus/src/__mocks__/testUtils.ts +++ b/packages/jest-circus/src/__mocks__/testUtils.ts @@ -11,13 +11,9 @@ import * as path from 'path'; import {ExecaSyncReturnValue, sync as spawnSync} from 'execa'; import * as fs from 'graceful-fs'; -const CIRCUS_PATH = require.resolve('../../build').replace(/\\/g, '\\\\'); -const CIRCUS_RUN_PATH = require - .resolve('../../build/run') - .replace(/\\/g, '\\\\'); -const CIRCUS_STATE_PATH = require - .resolve('../../build/state') - .replace(/\\/g, '\\\\'); +const CIRCUS_PATH = require.resolve('../').replace(/\\/g, '\\\\'); +const CIRCUS_RUN_PATH = require.resolve('../run').replace(/\\/g, '\\\\'); +const CIRCUS_STATE_PATH = require.resolve('../state').replace(/\\/g, '\\\\'); const TEST_EVENT_HANDLER_PATH = require .resolve('./testEventHandler') .replace(/\\/g, '\\\\');