Closed maxkoryukov closed 8 years ago
mocha-casperjs
runs in phantomjs, not Node.js. There is 0 node.js code in this project - it just uses npm as a distribution mechanism. phantomjs supports the CommonJS module format, but modules can't use any node specifics. Looking at the rewire project, it's very node-specific so it won't work.
From the errors I can see something failed to parse and a module failed to load. I guess casper is interpretting the parse error as a 'Can't find module error.' Not the clearest error, but phantom might not be giving it much more information.
Thanks, I got it;)
But anyway: the error reporting is watery, there is no line numbers or other info. It's sad... I think, it is no sense to open this ticket;)
Thanks!
Yeah I'm not sure why you didn't get a stack trace line in your code (I reproduced the same thing myself), but I'm at the mercy of phantomjs and casperjs here. An actual test failure trace is much better (note phantomjs doesn't support source maps).
Hello!
Shortly
mocha-casperjs
Detailed
I have very simple
test/test.js
file:yes, there is just one line of javascript.
But when I try to run tests, I get: