Skip to content

Commit e5c1453

Browse files
committed
#8708 Move runGlobalHook.ts from 'jest-core' to 'jest-runner' to avoid circular dependencies
1 parent e2ff745 commit e5c1453

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

packages/jest-core/src/runJest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import type TestSequencer from '@jest/test-sequencer';
2424
import type {Config} from '@jest/types';
2525
import type {ChangedFiles, ChangedFilesPromise} from 'jest-changed-files';
2626
import Resolver from 'jest-resolve';
27+
import {runGlobalHook} from 'jest-runner';
2728
import {requireOrImportModule, tryRealpath} from 'jest-util';
2829
import {JestHook, type JestHookEmitter, type TestWatcher} from 'jest-watcher';
2930
import type FailedTestsCache from './FailedTestsCache';
@@ -34,7 +35,6 @@ import collectNodeHandles, {
3435
} from './collectHandles';
3536
import getNoTestsFoundMessage from './getNoTestsFoundMessage';
3637
import serializeToJSON from './lib/serializeToJSON';
37-
import runGlobalHook from './runGlobalHook';
3838
import type {Filter, TestRunData} from './types';
3939

4040
const getTestPaths = async (

packages/jest-runner/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export type {
4444
JestTestRunner,
4545
UnsubscribeFn,
4646
} from './types';
47+
export {default as runGlobalHook} from './runGlobalHook';
4748

4849
type TestWorker = typeof import('./testWorker');
4950

0 commit comments

Comments
 (0)