@babel/helper-fixtures

  • Version 8.0.1
  • Published
  • 43 kB
  • 2 dependencies
  • MIT license

Install

npm i @babel/helper-fixtures
yarn add @babel/helper-fixtures
pnpm add @babel/helper-fixtures

Overview

Helper function to support fixtures

Index

Functions

function get

get: (entryLoc: string | URL) => Suite[];

    function multiple

    multiple: (entryLoc: string | URL, ignore?: string[]) => Record<string, Suite[]>;

      function readFile

      readFile: (filename: string | undefined) => string;

        function resolveOptionPluginOrPreset

        resolveOptionPluginOrPreset: (options: any, optionsDir: string) => any;
        • Resolve plugins/presets defined in options.json

          Parameter options

          the imported options.json

          Parameter optionsDir

          the directory where options.json is placed

          Returns

          {any} options whose plugins/presets are resolved

        Interfaces

        interface TaskOptions

        interface TaskOptions extends InputOptions {}

          property BABEL_8_BREAKING

          BABEL_8_BREAKING?: boolean;

            property DO_NOT_SET_SOURCE_TYPE

            DO_NOT_SET_SOURCE_TYPE?: boolean;

              property externalHelpers

              externalHelpers?: boolean;

                property ignoreOutput

                ignoreOutput?: boolean;

                  property minNodeVersion

                  minNodeVersion?: string;

                    property minNodeVersionTransform

                    minNodeVersionTransform?: string;

                      property os

                      os?: string | string[];

                        property SKIP_babel7plugins_babel8core

                        SKIP_babel7plugins_babel8core?: string;

                          property SKIP_ON_PUBLISH

                          SKIP_ON_PUBLISH?: boolean;

                            property sourceMap

                            sourceMap?: boolean;

                              property throws

                              throws?: boolean | string;

                                property validateLogs

                                validateLogs?: boolean;

                                  interface Test

                                  interface Test {}

                                    property actual

                                    actual: TestFile;

                                      property disabled

                                      disabled: boolean | string;

                                        property doNotSetSourceType

                                        doNotSetSourceType: boolean;

                                          property exec

                                          exec: TestFile;

                                            property expect

                                            expect: TestFile;

                                              property externalHelpers

                                              externalHelpers: boolean;

                                                property ignoreOutput

                                                ignoreOutput: boolean;

                                                  property inputSourceMap

                                                  inputSourceMap?: EncodedSourceMap;

                                                    property options

                                                    options: TaskOptions;

                                                      property optionsDir

                                                      optionsDir: string | undefined;

                                                        property sourceMap

                                                        sourceMap: object | undefined;

                                                          property sourceMapFile

                                                          sourceMapFile: TestFile;

                                                            property sourceMapVisual

                                                            sourceMapVisual: TestFile;

                                                              property stderr

                                                              stderr: TestIO;

                                                                property stdout

                                                                stdout: TestIO;

                                                                  property taskDir

                                                                  taskDir: string;

                                                                    property title

                                                                    title: string;

                                                                      property validateLogs

                                                                      validateLogs: boolean;

                                                                        property validateSourceMapVisual

                                                                        validateSourceMapVisual: boolean;

                                                                          interface TestFile

                                                                          interface TestFile extends TestIO {}

                                                                            property filename

                                                                            filename: string | undefined;

                                                                              Package Files (1)

                                                                              Dependencies (2)

                                                                              Dev Dependencies (2)

                                                                              Peer Dependencies (1)

                                                                              Badge

                                                                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@babel/helper-fixtures.

                                                                              • Markdown
                                                                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@babel/helper-fixtures)
                                                                              • HTML
                                                                                <a href="https://www.jsdocs.io/package/@babel/helper-fixtures"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>