UNPKG

597 BMarkdownView Raw
1# babel-helper-fixtures
2
3**NOTE:** This is an internal Babel module and may not work outside. Use at your own risk.
4
5## Usage
6
7```javascript
8import getFixtures from "babel-helper-fixtures";
9
10type TestFile = {
11 loc: string;
12 code: string;
13 filename: string;
14};
15
16type Test = {
17 title: string;
18 disabled: boolean;
19 options: Object;
20 exec: TestFile;
21 actual: TestFile;
22 expected: TestFile;
23};
24
25type Suite = {
26 options: Object;
27 tests: Array<Test>;
28 title: string;
29 filename: string;
30};
31
32let fixtures: Array<Suite> = getFixtures("/User/sebmck/Projects/babel-something/test/fixtures");
33```