Skip to content

Commit 24b6144

Browse files
committed
feat(package): add test:server script
1 parent 31951aa commit 24b6144

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: templates/app/_package.json

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
"babel-plugin-transform-runtime": "^6.6.0",
120120
"babel-plugin-istanbul": "^4.1.4",
121121
"babel-preset-es2015": "^6.6.0",
122+
"cross-env": "^5.1.1",
122123
"eslint": "^2.12.0",
123124
"del": "^3.0.0",
124125
"gulp": "^3.9.1",
@@ -217,6 +218,7 @@
217218
"lint:server": "eslint ./server/**/*.js -c ./server/.eslintrc --ignore-pattern *.spec.js --ignore-pattern *.integration.js",
218219
"test": "gulp test",
219220
"test:client": "karma start ./karma.conf.js --single-run",
221+
"test:server": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --reporter spec --timeout 5000 --require ./mocha.conf.js ./server/**/*.{spec,integration}.js mocha.global.js",
220222
<%_ if(filters.flow) { -%>
221223
"flow": "flow",
222224
<%_ } -%>

0 commit comments

Comments
 (0)