Skip to content

Commit

Permalink
fix(jest-runner): use local jest version when jest@<25 (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojs committed Jun 11, 2021
1 parent 13618a0 commit 3218c9e
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,6 +1,6 @@
import jest from 'jest';
import { Config } from '@jest/types';

import { jestWrapper } from '../utils';
import { JestRunResult } from '../jest-run-result';

import { RunSettings, JestTestAdapter } from './jest-test-adapter';
Expand All @@ -12,7 +12,7 @@ import { RunSettings, JestTestAdapter } from './jest-test-adapter';
export class JestLessThan25TestAdapter implements JestTestAdapter {
public run({ jestConfig, projectRoot, fileNameUnderTest, testNamePattern, testLocationInResults }: RunSettings): Promise<JestRunResult> {
const config = JSON.stringify(jestConfig);
return jest.runCLI(
return jestWrapper.runCLI(
{
...(fileNameUnderTest && { _: [fileNameUnderTest], findRelatedTests: true }),
config,
Expand Down

0 comments on commit 3218c9e

Please sign in to comment.