Skip to content

Commit bf7209c

Browse files
committed
Add informative header to bootstrap-tests.js
1 parent e4d164f commit bf7209c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bootstrap-tests.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
111
import path from 'path';
212
import {render} from 'enzyme';
313
import LineByLineReader from 'line-by-line';

0 commit comments

Comments
 (0)