Skip to content

Commit

Permalink
Update Gruntfile.js
Browse files Browse the repository at this point in the history
mochaTest task needs to be run in 'test' environment. To avoid DB flushing when mochaTest is called by watch, first call 'env:test' task before 'mochaTest'
  • Loading branch information
antoinepairet committed Mar 31, 2014
1 parent a23e735 commit 2f0320f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = function (grunt) {
},
mochaTest: {
files: ['test/server/{,*/}*.js'],
tasks: ['mochaTest']
tasks: ['env:test', 'mochaTest']
},
jsTest: {
files: ['test/client/spec/{,*/}*.js'],
Expand Down

0 comments on commit 2f0320f

Please sign in to comment.