timarney / react-app-rewired

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

fix: Override paths in memory also in "test" mode #571

Closed bencergazda closed 2 years ago

bencergazda commented 2 years ago

react-app-rewired provides the correct rewired paths for the jest config, but it does not override the paths config in the memory. This leads to different errors on the react-scripts' side, especially when using with Typescript.

This PR fixes this bug in test.js by making the overridden paths config available to react-scripts.

timarney commented 2 years ago

Sorry for the long delay --- I'll let things settle on the recent releases and than look to merge this.