File tree 2 files changed +5
-3
lines changed
packages/jest-circus/src/__mocks__
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ import * as fs from 'fs';
10
10
import * as path from 'path' ;
11
11
import { Config } from '@jest/types' ;
12
12
13
- import { ExecaReturns , sync as spawnSync } from 'execa' ;
13
+ // eslint-disable-next-line import/named
14
+ import { ExecaReturnValue , sync as spawnSync } from 'execa' ;
14
15
import { createDirectory } from 'jest-util' ;
15
16
import rimraf from 'rimraf' ;
16
17
17
- export type RunResult = ExecaReturns & {
18
+ interface RunResult extends ExecaReturnValue {
18
19
status : number ;
19
20
error : Error ;
20
- } ;
21
+ }
21
22
export const run = ( cmd : string , cwd ?: Config . Path ) : RunResult => {
22
23
const args = cmd . split ( / \s / ) . slice ( 1 ) ;
23
24
const spawnOptions = { cwd, preferLocal : false , reject : false } ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import * as fs from 'fs';
9
9
import { tmpdir } from 'os' ;
10
10
import * as path from 'path' ;
11
11
import { createHash } from 'crypto' ;
12
+ // eslint-disable-next-line import/named
12
13
import { ExecaSyncReturnValue , sync as spawnSync } from 'execa' ;
13
14
import { skipSuiteOnWindows } from '@jest/test-utils' ;
14
15
You can’t perform that action at this time.
0 commit comments