Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)