Skip to content

Commit 09c6561

Browse files
committed
test(mocha): migrated to modern rc based config
1 parent 0cda5ef commit 09c6561

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

.babelrc

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"presets": [["@travi", {react: true}]]
3-
}
1+
{"presets": [["@travi", {react: true}]]}

.mocharc.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ui":"tdd"}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint:sass": "sass-lint src/**/*.scss",
1111
"test": "npm-run-all --print-label --parallel lint:* --parallel test:* --sequential build",
1212
"test:unit": "nyc run-s test:unit:base",
13-
"test:unit:base": "mocha --recursive test/unit --require ./test/helpers/mocha-setup.js",
13+
"test:unit:base": "mocha --recursive test/unit --require @babel/register --require ./test/helpers/mocha-setup.js",
1414
"test:integration": "mocha stories/ --require @babel/register --require .storybook/mocha-config.js",
1515
"report-coverage": "nyc report --reporter=text-lcov | coveralls",
1616
"start": "start-storybook -p 9002",

test/mocha.opts

-2
This file was deleted.

0 commit comments

Comments
 (0)