Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mack Solomon committed Apr 17, 2019
1 parent 7ee3e54 commit 9d7aed1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const DEFAULT_GLOBAL_CONFIG: Config.GlobalConfig = {
testFailureExitCode: 1,
testNamePattern: '',
testPathPattern: '',
testSequencer: '',
testResultsProcessor: null,
testSequencer: '',
updateSnapshot: 'none',
useStderr: false,
verbose: false,
Expand Down
2 changes: 0 additions & 2 deletions packages/jest-cli/src/__tests__/cli/args.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ describe('check', () => {

describe('buildArgv', () => {
it('should return only camelcased args ', () => {
// @ts-ignore
const mockProcessArgv = jest
// @ts-ignore
.spyOn(process.argv, 'slice')
.mockImplementation(() => ['--clear-mocks']);
// @ts-ignore
const actual = buildArgv(null);
expect(actual).not.toHaveProperty('clear-mocks');
expect(actual).toHaveProperty('clearMocks', true);
Expand Down
1 change: 0 additions & 1 deletion packages/jest-haste-map/src/lib/FSEventsWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import path from 'path';
import {EventEmitter} from 'events';
import anymatch from 'anymatch';
import micromatch from 'micromatch';
// eslint-disable-next-line
import {Watcher} from 'fsevents';
// @ts-ignore no types
import walker from 'walker';
Expand Down
1 change: 1 addition & 0 deletions packages/jest-transform/src/ScriptTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ const readCacheFile = (cachePath: Config.Path): string | null => {
return fileData;
};

/* eslint-disable consistent-return */
const getScriptCacheKey = (filename: Config.Path, instrument: boolean) => {
const mtime = fs.statSync(filename).mtime;
return filename + '_' + mtime.getTime() + (instrument ? '_instrumented' : '');
Expand Down

0 comments on commit 9d7aed1

Please sign in to comment.