Skip to content

Commit

Permalink
moar lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 20, 2019
1 parent 50aea17 commit 81f308b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions e2e/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import * as fs from 'fs';
import * as path from 'path';
import {Config} from '@jest/types';

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

export type RunResult = ExecaReturns & {
interface RunResult extends ExecaReturnValue {
status: number;
error: Error;
};
}
export const run = (cmd: string, cwd?: Config.Path): RunResult => {
const args = cmd.split(/\s/).slice(1);
const spawnOptions = {cwd, preferLocal: false, reject: false};
Expand Down
1 change: 1 addition & 0 deletions packages/jest-circus/src/__mocks__/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as fs from 'fs';
import {tmpdir} from 'os';
import * as path from 'path';
import {createHash} from 'crypto';
// eslint-disable-next-line import/named
import {ExecaSyncReturnValue, sync as spawnSync} from 'execa';
import {skipSuiteOnWindows} from '@jest/test-utils';

Expand Down
1 change: 1 addition & 0 deletions packages/jest-get-type/src/__tests__/isPrimitive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*/

// eslint-disable-next-line import/named
import {isPrimitive} from '..';

describe('.isPrimitive()', () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/jest-runtime/src/__tests__/runtime_cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import path from 'path';
// eslint-disable-next-line import/named
import {sync as spawnSync} from 'execa';
import {skipSuiteOnWindows} from '@jest/test-utils';

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

Expand Down

0 comments on commit 81f308b

Please sign in to comment.