electron-userland / spectron

DEPRECATED: 🔎 Test Electron apps using ChromeDriver
http://electronjs.org/spectron
MIT License
1.68k stars 229 forks source link

Usage in Electron-webpack context #374

Open bleucitron opened 5 years ago

bleucitron commented 5 years ago

Hi there !

I'm building an Electron app with electron-webpack, along with jest as test suite.

I can't find a way to use spectron test utilities in this context. I've found this issue which seems to solve it, but i'd like to see if it's possible to avoid building the dist.

1) is there a way to tell spectron to precompile with babel so that i can use import/export out of the box ? 2) is it possible to make spectron aware of __static ?

mboutin-qohash commented 3 years ago

Anyone can answer to that?