Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including babel-helper-fixtures with all npm packages installed. Try it out:

var babelHelperFixtures = require("babel-helper-fixtures")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

babel-helper-fixtures v6.26.2

Helper function to support fixtures

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free