Miss any of our Open RFC calls?Watch the recordings here! »

babel-helper-fixtures

6.1.10 • Public • Published

babel-helper-fixtures

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

Keywords

none

Install

npm i [email protected]

Version

6.1.10

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar