Skip to content

Commit 433ab67

Browse files
committed
launch local karma with npm test
1 parent fb8f515 commit 433ab67

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"lint": "eslint components",
88
"dist": "webpack",
99
"compile": "babel -d lib/ components/",
10-
"prepublish": "npm run compile"
10+
"prepublish": "npm run compile",
11+
"test": "scripts/test --single-run"
12+
1113
},
1214
"repository": {
1315
"type": "git",

scripts/test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
NODE_ENV=test node_modules/.bin/karma start "$@"

0 commit comments

Comments
 (0)