add babel-helper-fixtures usage

This commit is contained in:
Sebastian McKenzie 2015-11-08 18:53:53 -08:00
parent da20aa90c1
commit 87be7d0e33

View File

@ -1 +1,31 @@
# babel-helper-fixtures
## Usage
```javascript
import { get as getFixtures } from "babel-helper-fixtures";
type TestFile = {
loc: string;
code: string;
filename: string;
};
type Test = {
title: string;
disabled: boolean;
options: Object;
exec: TestFile;
actual: TestFile;
expected: TestFile;
};
type Suite = {
options: Object;
tests: Array<Test>;
title: string;
filename: string;
};
let fixtures: Array<Suite> = getFixtures("/User/sebmck/Projects/babel-something/test/fixtures");
```