electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 99 forks source link

Electron Mocha support? #282

Closed Jacobtmaas closed 6 years ago

Jacobtmaas commented 6 years ago

It's seems like from #65 and #74 that using electron-compile alongside electron-mocha is possible. The problem is that I can't seem to get electron-compile to initialize while running electron-mocha tests in --renderer. Am I missing something, or am I simply misunderstanding electron-compile's capabilities?

Jacobtmaas commented 6 years ago

May have found my own answer.

This seems related to how electron-mocha handles electron See Here. This can be solved by explicitly setting the path to electron before running electron-mocha:

ELECTRON_PATH=node_modules/.bin/electron