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

templates/app/_package.json

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy