Skip to content

Commit

Permalink
test(pkg-tests): Fix duplicate module errors from pkg-tests (#5636)
Browse files Browse the repository at this point in the history
**Summary**

Adds pkg-tests-fixtures to module ignore path for Jest to avoid duplicate module errors during test
runs.

**Test plan**

Run `yarn test-only --clearCache; yarn test-only` and make sure you
don't see any `duplicate @providesModule` errors from pkg-tests folder.
  • Loading branch information
BYK authored and arcanis committed Apr 10, 2018
1 parent ca0316b commit 0773134
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,9 @@
"commit": "git-cz"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js"
],
"collectCoverageFrom": ["src/**/*.js"],
"testEnvironment": "node",
"modulePathIgnorePatterns": [
"__tests__/fixtures/"
],
"modulePathIgnorePatterns": ["__tests__/fixtures/", "packages/pkg-tests/pkg-tests-fixtures"],
"testPathIgnorePatterns": [
"__tests__/(fixtures|__mocks__)/",
"updates/",
Expand All @@ -139,4 +135,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}

0 comments on commit 0773134

Please sign in to comment.