Skip to content

Commit

Permalink
jest: make regex for tests stricter
Browse files Browse the repository at this point in the history
Summary:
Updated the configuration for all projects on xplat/js to only consider tests that end with `-test.js`.

All tests were migrated in the previous diff of the stack.

Reviewed By: mjesun

Differential Revision: D13185676

fbshipit-source-id: baaba94fabc403acb30b0b5a0462788813d7a870
  • Loading branch information
rubennorte authored and facebook-github-bot committed Nov 26, 2018
1 parent ffa9036 commit 922e196
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"moduleNameMapper": {
"^React$": "<rootDir>/Libraries/react-native/React.js"
},
"testRegex": "/__tests__/.*-test\\.js$",
"testPathIgnorePatterns": [
"Libraries/Renderer",
"/node_modules/",
Expand Down

0 comments on commit 922e196

Please sign in to comment.