Closed
Description
🐛 Bug Report
I had project on 0.58.0 and upgraded to 0.59.1 and jest tests stopped working with an error
● Validation Error:
Configuration options testMatch and testRegex cannot be used together.
Configuration Documentation:
https://jestjs.io/docs/configuration.html
This is my jest configuration in package.json:
"jest": {
"preset": "react-native",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
},
"transformIgnorePatterns": [
"node_modules/(?!react-native|react-navigation)"
],
"setupFiles": [
"<rootDir>/__mocks__/mocks.js"
],
"globals": {
"window": {}
},
"testRegex": "(/__tests__/.*|\\.(test))\\.jsx?$"
}
Nowhere do I have testMatch.
To Reproduce
Have 0.58 project and upgrade to 0.59.1
Expected Behavior
Tests to start running
Code Example
Environment
React Native Environment Info:
System:
OS: Ubuntu 18.04.2 LTS
CPU: Intel® Core™ i5-4440 CPU @ 3.10GHz × 4
Memory: 15,6 GiB
Binaries:
Node: 10.10.0
npm: 6.4.1
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.4.1
npmPackages:
react: 16.8.4
react-native: 0.59.1
Activity