Skip to content

Commit

Permalink
always set collectCoverageFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Nov 17, 2019
1 parent 454a68e commit 6e7347e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions packages/jest-config/src/normalize.ts
Expand Up @@ -1010,6 +1010,8 @@ export default function normalize(
}

newOptions.collectCoverageFrom = collectCoverageFrom;
} else if (!newOptions.collectCoverageFrom) {
newOptions.collectCoverageFrom = [];
}

return {
Expand Down
9 changes: 1 addition & 8 deletions packages/jest-runtime/src/index.ts
Expand Up @@ -178,14 +178,7 @@ class Runtime {
}
}

// TODO: Make this `static shouldInstrument = shouldInstrument;` after https://github.com/facebook/jest/issues/7846
static shouldInstrument(
filename: Config.Path,
options: ShouldInstrumentOptions,
config: Config.ProjectConfig,
) {
return shouldInstrument(filename, options, config);
}
static shouldInstrument = shouldInstrument;

static createContext(
config: Config.ProjectConfig,
Expand Down

0 comments on commit 6e7347e

Please sign in to comment.