babel-helper-fixtures

6.26.2 • Public • Published

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

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i babel-helper-fixtures

    Weekly Downloads

    215

    Version

    6.26.2

    License

    MIT

    Unpacked Size

    8.04 kB

    Total Files

    3

    Last publish

    Collaborators

    • hzoo
    • loganfsmyth
    • existentialism