Open amaury1093 opened 5 years ago
Agreed. It's way too painful trying to figure out where the test framework is slipping up. I recently swapped one of my projects from a fully custom setup to using electron-webpack (which went fairly smoothly) but had to do a lot of trial and error to finally discover that the stock tsconfig options don't play nice with Jest out of the box.
What is the correct way to configure Jest so it's most compatible with your electron-webpack settings?
Would love to know as well, currently fighting with all of these components
Right now, if I want to run tests, I need to:
The 2nd step should be removed.
I'd suggest to do like react-scripts, add a
test
command, which will run jest with the correct babel config.