@babel/helper-fixtures
Advanced tools
Comparing version 7.0.0-beta.49 to 7.0.0-beta.50
{ | ||
"name": "@babel/helper-fixtures", | ||
"version": "7.0.0-beta.49", | ||
"version": "7.0.0-beta.50", | ||
"description": "Helper function to support fixtures", | ||
@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
# @babel/helper-fixtures | ||
**NOTE:** This is an internal Babel module and may not work outside. Use at your own risk. | ||
> Helper function to support fixtures | ||
## Usage | ||
See our website [@babel/helper-fixtures](https://new.babeljs.io/docs/en/next/babel-helper-fixtures.html) for more information. | ||
```javascript | ||
import getFixtures from "@babel/helper-fixtures"; | ||
## Install | ||
type TestFile = { | ||
loc: string; | ||
code: string; | ||
filename: string; | ||
}; | ||
Using npm: | ||
type Test = { | ||
title: string; | ||
disabled: boolean; | ||
options: Object; | ||
exec: TestFile; | ||
actual: TestFile; | ||
expected: TestFile; | ||
}; | ||
```sh | ||
npm install --save @babel/helper-fixtures | ||
``` | ||
type Suite = { | ||
options: Object; | ||
tests: Array<Test>; | ||
title: string; | ||
filename: string; | ||
}; | ||
or using yarn: | ||
let fixtures: Array<Suite> = getFixtures("/User/sebmck/Projects/babel-something/test/fixtures"); | ||
```sh | ||
yarn add --save @babel/helper-fixtures | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7388
3
20