customize-cra: config-overrides not being processed in test command
I’m doing this to add emotion support:
addBabelPlugin('emotion'),
it works just fine on yarn start
but if I run yarn test
I get the error saying that I’m trying to use the emotion shortcuts without the babel plugin.
Do I need to do something to inject the plugin in the Jest config?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (6 by maintainers)
So, the end of the story is, the “react-app-rewired approach” is to use .babelrc like explained in this issue:
https://github.com/timarney/react-app-rewired/issues/328
I’d say it’s a viable solution, let’s close this.