Skip to content

Commit

Permalink
update: add @SimenB's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kunal-kushwaha committed Jul 28, 2020
1 parent 69a6aa7 commit 6ffa6ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions packages/jest-runner/src/runTest.ts
Expand Up @@ -79,11 +79,9 @@ async function runTestInternal(
path: Config.Path,
globalConfig: Config.GlobalConfig,
config: Config.ProjectConfig,

resolver: ResolverType,
sendMessageToJest?: TestFileEvent,

context?: TestRunnerContext,
sendMessageToJest?: TestFileEvent,
): Promise<RunTestInternalResult> {
const testSource = fs.readFileSync(path, 'utf8');
const docblockPragmas = docblock.parse(docblock.extract(testSource));
Expand Down Expand Up @@ -315,19 +313,17 @@ export default async function runTest(
path: Config.Path,
globalConfig: Config.GlobalConfig,
config: Config.ProjectConfig,

resolver: ResolverType,
sendMessageToJest?: TestFileEvent,

context?: TestRunnerContext,
): Promise<TestResult> {
const {leakDetector, result} = await runTestInternal(
path,
globalConfig,
config,
resolver,
sendMessageToJest,
context,
sendMessageToJest,
);

if (leakDetector) {
Expand Down
1 change: 0 additions & 1 deletion packages/jest-runner/src/testWorker.ts
Expand Up @@ -12,7 +12,6 @@ import HasteMap = require('jest-haste-map');
import exit = require('exit');
import {separateMessageFromStack} from 'jest-message-util';
import Runtime = require('jest-runtime');

import type {ResolverType} from 'jest-resolve';
import {messageParent} from 'jest-worker';
import type {
Expand Down

0 comments on commit 6ffa6ae

Please sign in to comment.