Skip to content

Commit 2f0320f

Browse files
committed
Update Gruntfile.js
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'
1 parent a23e735 commit 2f0320f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/common/Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = function (grunt) {
6767
},
6868
mochaTest: {
6969
files: ['test/server/{,*/}*.js'],
70-
tasks: ['mochaTest']
70+
tasks: ['env:test', 'mochaTest']
7171
},
7272
jsTest: {
7373
files: ['test/client/spec/{,*/}*.js'],

0 commit comments

Comments
 (0)