Skip to content
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

Using npm modules #119

Open
aramk opened this issue May 13, 2014 · 0 comments
Open

Using npm modules #119

aramk opened this issue May 13, 2014 · 0 comments

Comments

@aramk
Copy link

aramk commented May 13, 2014

Is there an easy way to use npm modules within tests? https://github.com/zvictor/laika-extended-example/blob/master/tests/%24setup.js uses should by installing it globally, but the https://www.npmjs.org/doc/faq.html says this shouldn't be used for require().

I'm trying to mock objects with Sinon.JS but installing it globally doesn't add the dependency with require(), so I tried using Npm.depends() but that didn't work at all with Meteor 0.8, and using Meteor.require() with meteor-npm only has Meteor defined within test().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant