I have project which has code targeting both browser and node. It has .babelrc
file for the browser code. But when I'm running tests for the node code using Jest it always reads the .babelrc
file which is not required.
So I can somehow disable it?
You need to create an additional jest setting file for your node test. In this file set transform
to an empty object. To use this file you need to call jest with the --config
option pointing to your node jest setting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With