Skip to content

Commit 48b020b

Browse files
committed
moar lint
1 parent b027142 commit 48b020b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
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

packages/jest-get-type/src/__tests__/isPrimitive.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*
77
*/
88

9+
// eslint-disable-next-line import/named
910
import {isPrimitive} from '..';
1011

1112
describe('.isPrimitive()', () => {

packages/jest-runtime/src/__tests__/runtime_cli.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
import path from 'path';
9+
// eslint-disable-next-line import/named
910
import {sync as spawnSync} from 'execa';
1011
import {skipSuiteOnWindows} from '@jest/test-utils';
1112

@@ -24,7 +25,7 @@ describe('Runtime', () => {
2425
describe('cli', () => {
2526
it('fails with no path', () => {
2627
const expectedOutput =
27-
'Please provide a path to a script. (See --help for details)\n';
28+
'Please provide a path to a script. (See --help for details)';
2829
expect(run([]).stdout).toBe(expectedOutput);
2930
});
3031

0 commit comments

Comments
 (0)