Skip to content
Browse files

fixes #361

set's the flag when we try to run the `test` task
  • Loading branch information...
1 parent 25e1d57 commit ae8e57b417d8382a815d16156781aee7fb4d0574 Manuel van Rijn committed Sep 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 cli/bin/yeoman
View
6 cli/bin/yeoman
@@ -50,6 +50,12 @@ function init() {
cli.tasks = cmds.join(':');
}
+ // specific flag to ensure we bypass insight prompt when running the test task
+ if(/^test/.test(route)) {
+ var env = process.env;
+ env.yeoman_test = true;
+ }
+
// add the plugin version on `--version`
if(opts.version) {
return console.log('%s v%s', pkg.name, pkg.version);

0 comments on commit ae8e57b

Please sign in to comment.
Something went wrong with that request. Please try again.