-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing controller which are using node modules #15
Comments
Hi, I'm not sure exactly, but I've found karma-runner/karma#835 . Could a framework be somehow included twice? If that doesn't help, than can you post a minimal example, with just enough code in order to be able to reproduce the issue at my end? |
Hi, I've just created a new little project: https://github.com/MiLk/node-webkit-test Thank you for your help. |
In MiLk/node-webkit-test@9b095fc, I added a node module from npm in a controller. But I obtain this error:
Adding |
Regarding the underscore error, it looks like Node can't find the locally installed modules. A solution that works at my end is to set the environment variable NODE_PATH before running the tests
|
Ok, thank you. I'll try this solution on Monday. |
Regarding Mocha... it seems to overwrite the global However, you can hack this in your local Mocha install by changing line 5695 of node_modules/mocha/mocha.js from
to
Any better work-arounds or solutions without Mocha.js being changed are welcome. |
By editing the A call to I've added a new commit to my test project: MiLk/node-webkit-test@4623b19 I got the following error:
The fix for Mocha works for me. Thank you. |
Regarding 2d181f9, adding What do you think about it ? |
mochajs/mocha#1159 was merged into the latest release, but the build didn't happen-- see mochajs/mocha#1284 |
@boneskull The mocha build appears to have now been merged. @MiLk I've included your suggestion, thanks. If there appears to be no problems, I'll bump the version in npm. |
Version bumped, closing this issue. If there are problems with the new version, feel free to post again. |
I'm currently working on an application using node-webkit and AngularJS.
I tried to use the
karma-nodewebkit-launcher
module,as I didn't find any other solution to run tests on the AngularJS part.
But I have an issue.
When I add a controller which use a node module to the file list in
karma.conf.js
,I obtain the following error:
I'm using node-webkit 0.8.4 with OSX 10.8.5.
My
karma.conf.js
is:Did I do something wrong ?
Is there a file missing in my
karma.conf.js
?Thank you.
The text was updated successfully, but these errors were encountered: