We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d164f commit bf7209cCopy full SHA for bf7209c
bootstrap-tests.js
@@ -1,3 +1,13 @@
1
+// bootstrap-tests.js - A tool for updating the test cases in __tests__/fixtures.js
2
+//
3
+// 1) Reads __tests__/fixtures.js and looks for a "dynamic part", which should be a list of fields
4
+// belonging to that file's default export, enclosed in a pair of markers (see "signal" constants
5
+// below).
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.
10
+
11
import path from 'path';
12
import {render} from 'enzyme';
13
import LineByLineReader from 'line-by-line';
0 commit comments