Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/helper-fixtures

Package Overview
Dependencies
Maintainers
5
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-fixtures - npm Package Compare versions

Comparing version 7.0.0-beta.49 to 7.0.0-beta.50

2

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc