Spectron and starting electron application

335 Views Asked by At

While trying to run the first mocha test for my electron application I get error:

enter image description here

I am pretty sure it is related to the way application is run in general. While using "electron ." to start, there is no issue. When "npm start" is executed, i get the same error as pictured. Most probably it is related to the way db was added to electron (PouchDB + sqlite) for Windows (recompilation)

Since configuring sqlite for PouchDB for electron took me a while and I have to use this tool, do you think there is a way to get mocha running under such circumstances?

1

There are 1 best solutions below

0
On

I don't think you should use "npm start", I started a cmd window under the dir where the mocha test is written, and just run "mocha" and the test runs.