Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 81192f8

Browse files
committed
Add @babel/register for mocha tests
1 parent b0cf6e0 commit 81192f8

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

package-lock.json

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@babel/core": "^7.4.0",
5050
"@babel/plugin-proposal-object-rest-spread": "^7.4.0",
5151
"@babel/plugin-transform-modules-commonjs": "^7.4.0",
52+
"@babel/register": "^7.4.0",
5253
"@storybook/addon-actions": "^5.0.6",
5354
"@storybook/addon-links": "^5.0.6",
5455
"@storybook/addons": "^5.0.6",

test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
--exit
22
--recursive
3-
--require babel-core/register
3+
--require @babel/register
44
-r ./test/setup.js

0 commit comments

Comments
 (0)