Skip to content

Commit 9969de8

Browse files
committed
Move Mocha options to a mocha.opts file.
1 parent b3fd552 commit 9969de8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
},
7575
"scripts": {
7676
"test": "npm run lint && npm run mocha && npm run build",
77-
"mocha": "mocha --compilers js:babel-core/register test",
78-
"mocha:watch": "mocha --watch --reporter min --compilers js:babel/register test",
77+
"mocha": "mocha test",
78+
"mocha:watch": "mocha --watch --reporter min test",
7979
"start": "./bin/styleguidist server --config example/styleguide.config.js",
8080
"lint": "eslint src --ext .js",
8181
"build": "./bin/styleguidist build --config example/styleguide.config.js",

test/mocha.opts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--compilers js:babel-core/register
2+
--require mochasetup

0 commit comments

Comments
 (0)