We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 598caaf commit 1d6eb06Copy full SHA for 1d6eb06
bootstrap-tests.js
@@ -6,7 +6,7 @@
6
// 2) Imports the same fixtures file and (re-)renders each ReactElement to a static SVG string.
7
// 3) On success, overwrites __tests__/fixtures.js with an updated copy.
8
//
9
-// Run with babel-node or similar.
+// Run with babel-node or using "npm run test:bootstrap".
10
11
import path from 'path';
12
import {render} from 'enzyme';
package.json
@@ -11,7 +11,8 @@
"test": "mocha --compilers js:babel-core/register __tests__",
"test:watch": "mocha --compilers js:babel-core/register --watch __tests__",
13
"compile": "webpack",
14
- "prepublish": "npm run compile"
+ "prepublish": "npm run compile",
15
+ "test:bootstrap": "node -r babel-core/register bootstrap-tests.js"
16
},
17
"repository": {
18
"type": "git",
0 commit comments