Skip to content

Instantly share code, notes, and snippets.

@axemclion
Created August 27, 2013 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axemclion/6357083 to your computer and use it in GitHub Desktop.
Save axemclion/6357083 to your computer and use it in GitHub Desktop.
Calling NPM test from inside a node module
npm = require('npm')
npm.load({
argv: {
remain: [],
cooked: ['test'],
original: ['test']
}
}, function() {
npm.commands.test([], function() {});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment