electron-userland / electron-webpack

Scripts and configurations to compile Electron applications using webpack
https://webpack.electron.build/
903 stars 170 forks source link

Add `electron-webpack test` command #266

Open amaury1093 opened 5 years ago

amaury1093 commented 5 years ago

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.

thinkclay commented 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.

beorn commented 4 years ago

What is the correct way to configure Jest so it's most compatible with your electron-webpack settings?

ejohnso49 commented 4 years ago

Would love to know as well, currently fighting with all of these components