Specify NODE_ENV during test commands
"scripts": {
"clean": "rm -rf build/",
"compile": "truffle compile",
- "test": "truffle test",
- "integration-test": "INTEGRATION_TEST=true truffle test",
- "test:debug": "node --inspect node_modules/.bin/truffle test",
+ "test": "NODE_ENV=test truffle test",
+ "integration-test": "NODE_ENV=test INTEGRATION_TEST=true truffle test",
+ "test:debug": "NODE_ENV=test node --inspect node_modules/.bin/truffle test",
"js:lint": "eslint ${npm_package_config_eslintPaths}",
"js:lint:fix": "eslint --fix ${npm_package_config_eslintPaths}",
"sol:lint": "solium -d contracts/",
