Skip to content

Commit 036e700

Browse files
committed
Run the server rendering test against Node
1 parent 5d2af4b commit 036e700

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"build-min": "NODE_ENV=production webpack -p modules/index.js umd/ReactRouter.min.js",
2323
"lint": "eslint modules examples",
2424
"start": "node examples/server.js",
25-
"test": "npm run lint && karma start",
25+
"test": "npm run lint && npm run test-node && npm run test-browser",
26+
"test-browser": "karma start",
27+
"test-node": "mocha --compilers js:babel-core/register tests.node.js",
2628
"postinstall": "node ./npm-scripts/postinstall.js"
2729
},
2830
"authors": [

tests.node.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './modules/__tests__/serverRendering-test'

0 commit comments

Comments
 (0)