Skip to content

Commit 784e2e9

Browse files
committed
moar lint
1 parent b027142 commit 784e2e9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

e2e/Utils.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ import * as fs from 'fs';
1010
import * as path from 'path';
1111
import {Config} from '@jest/types';
1212

13-
import {ExecaReturns, sync as spawnSync} from 'execa';
13+
// eslint-disable-next-line import/named
14+
import {ExecaReturnValue, sync as spawnSync} from 'execa';
1415
import {createDirectory} from 'jest-util';
1516
import rimraf from 'rimraf';
1617

17-
export type RunResult = ExecaReturns & {
18+
interface RunResult extends ExecaReturnValue {
1819
status: number;
1920
error: Error;
20-
};
21+
}
2122
export const run = (cmd: string, cwd?: Config.Path): RunResult => {
2223
const args = cmd.split(/\s/).slice(1);
2324
const spawnOptions = {cwd, preferLocal: false, reject: false};

packages/jest-circus/src/__mocks__/testUtils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as fs from 'fs';
99
import {tmpdir} from 'os';
1010
import * as path from 'path';
1111
import {createHash} from 'crypto';
12+
// eslint-disable-next-line import/named
1213
import {ExecaSyncReturnValue, sync as spawnSync} from 'execa';
1314
import {skipSuiteOnWindows} from '@jest/test-utils';
1415

0 commit comments

Comments
 (0)