Skip to content

Commit

Permalink
[jest-transform] use includes instead of some (#8402)
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha authored and scotthovestadt committed May 1, 2019
1 parent ff9985c commit 8329972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-transform/src/shouldInstrument.ts
Expand Up @@ -79,11 +79,11 @@ export default function shouldInstrument(
return false;
}

if (config.setupFiles.some(setupFile => setupFile === filename)) {
if (config.setupFiles.includes(filename)) {
return false;
}

if (config.setupFilesAfterEnv.some(setupFile => setupFile === filename)) {
if (config.setupFilesAfterEnv.includes(filename)) {
return false;
}

Expand Down

0 comments on commit 8329972

Please sign in to comment.