Skip to content

Commit 35c8179

Browse files
Merge pull request #48 from JaKXz/chore/mocha-opts
chore: add mocha.opts and simplify test script
2 parents 6bb1a19 + 759d850 commit 35c8179

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"build": "node node_modules/.bin/babel src --ignore **/*.spec.js -d build",
88
"lint": "node node_modules/.bin/eslint src",
9-
"test": "npm run lint && node node_modules/.bin/mocha --compilers js:babel-core/register 'test/**/*.spec.js'"
9+
"pretest": "npm run lint",
10+
"test": "mocha"
1011
},
1112
"repository": {
1213
"type": "git",

test/mocha.opts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--compilers js:babel-core/register
2+
test/**/*.spec.js

0 commit comments

Comments
 (0)