Skip to content

Commit

Permalink
change runGlobalModules function name to runGlobalHook
Browse files Browse the repository at this point in the history
  • Loading branch information
ranyitz committed Aug 29, 2018
1 parent 484f730 commit 1a1412d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions packages/jest-cli/src/runJest.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {Console, formatTestResults} from 'jest-util';
import exit from 'exit';
import fs from 'graceful-fs';
import getNoTestsFoundMessage from './getNoTestsFoundMessage';
import runGlobalModules from './runGlobalModules';
import runGlobalHook from './runGlobalHook';
import SearchSource from './SearchSource';
import TestScheduler from './TestScheduler';
import TestSequencer from './TestSequencer';
Expand Down Expand Up @@ -272,7 +272,7 @@ export default (async function runJest({
collectHandles = collectNodeHandles();
}

await runGlobalModules({allTests, globalConfig, moduleName: 'globalSetup'});
await runGlobalHook({allTests, globalConfig, moduleName: 'globalSetup'});

const results = await new TestScheduler(
globalConfig,
Expand All @@ -284,7 +284,7 @@ export default (async function runJest({

sequencer.cacheResults(allTests, results);

await runGlobalModules({
await runGlobalHook({
allTests,
globalConfig,
moduleName: 'globalTeardown',
Expand Down

0 comments on commit 1a1412d

Please sign in to comment.