Open DinisCruz opened 8 years ago
Here is a temp fix
beforeEach ()->
spectron = new Spectron_API();
spectron.setup()
spectron.options.path =spectron.options.path.remove('electrium/node_modules/') # temp fix for https://github.com/o2platform/electrium/issues/1
spectron.app = new spectron.Application(spectron.options)
spectron.start()
.then ()->
console.log 'spectron started'
.catch (err)->
console.log 'error: ' + err
or just
beforeEach ()->
using new Spectron_API(), ->
spectron = @
@.setup()
@.options.path = @.options.path.remove('electrium/node_modules/') # temp fix for https://github.com/o2platform/electrium/issues/1
@.app = new @.Application(@.options)
@.start()
This is what happens when invoking start (the problem is that the
.bin/electrium
path is not found due to the fact that is exists on the top level node_modules folder (vs the electrium's node_module's folder)here is a test that isolates the issue
here is a test that replicates the problem