@@ -23,7 +23,6 @@ import * as args from './args';
2323import chalk from 'chalk' ;
2424import createContext from '../lib/create_context' ;
2525import getChangedFilesPromise from '../get_changed_files_promise' ;
26- import getJest from './get_jest' ;
2726import handleDeprecationWarnings from '../lib/handle_deprecation_warnings' ;
2827import logDebugMessages from '../lib/log_debug_messages' ;
2928import { print as preRunMessagePrint } from '../pre_run_message' ;
@@ -39,11 +38,8 @@ export async function run(maybeArgv?: Argv, project?: Path) {
3938 try {
4039 const argv : Argv = buildArgv ( maybeArgv , project ) ;
4140 const projects = getProjectListFromCLIArgs ( argv , project ) ;
42- // If we're running a single Jest project, we might want to use another
43- // version of Jest (the one that is specified in this project's package.json)
44- const runCLIFn = getRunCLIFn ( projects ) ;
4541
46- const { results, globalConfig} = await runCLIFn ( argv , projects ) ;
42+ const { results, globalConfig} = await runCLI ( argv , projects ) ;
4743 readResultsAndExit ( results , globalConfig ) ;
4844 } catch ( error ) {
4945 clearLine ( process . stderr ) ;
@@ -158,9 +154,6 @@ const getProjectListFromCLIArgs = (argv, project: ?Path) => {
158154 return projects ;
159155} ;
160156
161- const getRunCLIFn = ( projects : Array < Path > ) =>
162- projects . length === 1 ? getJest ( projects [ 0 ] ) . runCLI : runCLI ;
163-
164157const printDebugInfoAndExitIfNeeded = (
165158 argv ,
166159 globalConfig ,
0 commit comments