Skip to content

Commit 8bfd776

Browse files
committed
Merge pull request #37 from VisualTesting/fix/env
Setting the process.env.NODE_ENV in the test startup
2 parents e80bf22 + 4928267 commit 8bfd776

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
},
4646
"scripts": {
4747
"start": "grunt serve",
48-
"test": "NODE_ENV=test mocha --color",
49-
"travis": "NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
50-
"appveyor": "set NODE_ENV=test&& mocha --color"
48+
"test": "mocha --color",
49+
"travis": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
50+
"appveyor": "mocha --color"
5151
}
5252
}

test/support/setup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
'use strict';
22

3-
var path = require('path');
3+
process.env.NODE_ENV = 'test';
44

5+
var path = require('path');
56
var chai = require('chai');
67
chai.use(require('chai-as-promised'));
78
chai.use(require('chai-shallow-deep-equal'));

0 commit comments

Comments
 (0)