timarney / react-app-rewired

Override create-react-app webpack configs without ejecting
MIT License
9.79k stars 425 forks source link

Overriding primitive values doesn't work for Jest #507

Closed rosieks closed 3 years ago

rosieks commented 3 years ago

I just in proces of migrating app to create-react-app 4.0 and found that they set resetMocks to true, while all my tests are not prepared for that. Unfortunately current implementation of rewireJestConfig doesn't support overriding boolean values.

"jest": {
    "resetMocks": false
}