electron-webpack icon indicating copy to clipboard operation
electron-webpack copied to clipboard

Add `electron-webpack test` command

Open amaury1093 opened this issue 6 years ago • 3 comments

Right now, if I want to run tests, I need to:

  • install jest (or another test framework)
  • add manually a babel.config.js in the root folder, so that jest knows how to parse the tests

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.

amaury1093 avatar Feb 05 '19 13:02 amaury1093

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.

thinkclay avatar May 24 '19 09:05 thinkclay

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

beorn avatar Mar 23 '20 17:03 beorn

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

ejohnso49 avatar May 14 '20 21:05 ejohnso49