babel/packages/babel-helper-fixtures
2017-09-11 23:01:41 -04:00
..
2017-08-28 13:36:03 -06:00
2017-03-25 21:46:16 -04:00
2017-09-11 23:01:41 -04:00
2015-11-12 01:09:31 -08:00

babel-helper-fixtures

NOTE: This is an internal Babel module and may not work outside. Use at your own risk.

Usage

import 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");