Skip to content

Commit 1d6eb06

Browse files
committed
Add test:bootstrap npm script -> bootstrap-tests.js
1 parent 598caaf commit 1d6eb06

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bootstrap-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// 2) Imports the same fixtures file and (re-)renders each ReactElement to a static SVG string.
77
// 3) On success, overwrites __tests__/fixtures.js with an updated copy.
88
//
9-
// Run with babel-node or similar.
9+
// Run with babel-node or using "npm run test:bootstrap".
1010

1111
import path from 'path';
1212
import {render} from 'enzyme';

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"test": "mocha --compilers js:babel-core/register __tests__",
1212
"test:watch": "mocha --compilers js:babel-core/register --watch __tests__",
1313
"compile": "webpack",
14-
"prepublish": "npm run compile"
14+
"prepublish": "npm run compile",
15+
"test:bootstrap": "node -r babel-core/register bootstrap-tests.js"
1516
},
1617
"repository": {
1718
"type": "git",

0 commit comments

Comments
 (0)