Skip to content

Commit

Permalink
Fix linting and typing
Browse files Browse the repository at this point in the history
  • Loading branch information
lekterable committed Feb 3, 2019
1 parent 2ef296b commit 4d8ae5c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/jest-runtime/src/__tests__/should_instrument.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*
*/

import type {Path, ProjectConfig} from 'types/Config';
import type {Options} from '../ScriptTransformer';

import {normalize} from 'jest-config';
import shouldInstrument from '../shouldInstrument';

describe('shouldInstrument', () => {
const defaultFilename: Path = 'source_file.test.js';
const defaultOptions: Options = {
const defaultFilename = 'source_file.test.js';
const defaultOptions = {
collectCoverage: true,
};
const defaultConfig = normalize(
Expand Down Expand Up @@ -209,15 +206,15 @@ describe('shouldInstrument', () => {

it('if file is a globalSetup file', () => {
testShouldInstrument('globalSetup.js', defaultOptions, {
rootDir: '/',
globalSetup: 'globalSetup.js',
rootDir: '/',
});
});

it('if file is globalTeardown file', () => {
testShouldInstrument('globalTeardown.js', defaultOptions, {
rootDir: '/',
globalTeardown: 'globalTeardown.js',
rootDir: '/',
});
});

Expand Down

0 comments on commit 4d8ae5c

Please sign in to comment.