Closed halfdan closed 9 years ago
It looks like knex is having some issue running in io.js. By default, wallaby is using its own node version, that is currently io.js. If you'd like wallaby to run your local default node version (whatever node
command runs) you may specify the command as a value of the runner
property:
env: {
type: 'node',
runner: 'node'
// or
// runner: 'path to the desired node version'
}
Alternatively you may specify a path to the desired node version if 0.10 is not your default version and is installed via nvm for example.
Please let me know if it fixes the issue for you.
You may double check what version of node is running by just console.log
-ing it:
@ArtemGovorov That does indeed fix it! Is there any way Wallaby could emit/catch an error somewhere and display that? It's not very helpful if an unrelated test suddenly times out.
Feel free to close. Thanks for your help! :)
@halfdan Awesome, thanks. It normally does display errors like this one, I'll check why it doesn't in this case.
The moment I use knex in my project wallaby doesn't seem to be able to run tests anymore. Here's an example project with just two simple tests: https://github.com/halfdan/wallaby-fail
The moment you take out the
this._knex = knex(options);
inlib/thing.js
the tests seem to run fine. With that line the wallaby hangs at the first test:I'm using the latest IntelliJ version, node 0.10 and an unregistered version of wallaby. Log output in idea.log doesn't contain anything wallaby related.