Skip to content

Commit 5bb96a2

Browse files
committed
Build before running karma tests
The test suite depends on the dist/ files. Running `npm test` after a fresh git clone will fail unless `npm run build` is run first.
1 parent 0ea91ae commit 5bb96a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint": "eslint include-fragment-element.js test/*.js",
1313
"prebuild": "npm run clean && npm run lint && mkdir dist",
1414
"build": "babel include-fragment-element.js -o dist/index-umd.js",
15-
"pretest": "npm run lint",
15+
"pretest": "npm run build",
1616
"test": "karma start ./test/karma.config.js",
1717
"prepublishOnly": "npm run build"
1818
},

0 commit comments

Comments
 (0)