jest: make regex for tests stricter

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
This commit is contained in:
Rubén Norte 2018-11-26 10:17:18 -08:00 committed by Facebook Github Bot
parent ffa9036252
commit 922e196ed1
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@
"moduleNameMapper": { "moduleNameMapper": {
"^React$": "<rootDir>/Libraries/react-native/React.js" "^React$": "<rootDir>/Libraries/react-native/React.js"
}, },
"testRegex": "/__tests__/.*-test\\.js$",
"testPathIgnorePatterns": [ "testPathIgnorePatterns": [
"Libraries/Renderer", "Libraries/Renderer",
"/node_modules/", "/node_modules/",