babel-helper-fixtures
    Overview
    Documentation
    Tutorials
    Chat
    Insights
    Code
    Dependencies
    Contributors
    Jobs

babel-helper-fixtures

Helper function to support fixtures

6.26.2  •  Updated 1 years ago  •  by Sebastian McKenzie  •  MIT License

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

Popularity

Weekly Downloads
Add this graph to GitHub
173

Maintenance

Development

Last ver 2 years ago
Created 5 years ago
Last commit 1 second ago
1 second between commits

Technology

Node version: 9.4.0
8K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

0 contributors
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.