jest-config

  • Version 30.0.0
  • Published
  • 114 kB
  • 24 dependencies
  • MIT license

Install

npm i jest-config
yarn add jest-config
pnpm add jest-config

Overview

Overview not available.

Index

Variables

variable DEFAULT_JS_PATTERN

const DEFAULT_JS_PATTERN: string;

    variable defaults

    const defaults: Config.DefaultOptions;

      variable deprecationEntries

      const deprecationEntries: DeprecatedOptions;

        variable descriptions

        const descriptions: { [x: string]: string };

          variable JEST_CONFIG_BASE_NAME

          const JEST_CONFIG_BASE_NAME: string;

            variable JEST_CONFIG_EXT_CJS

            const JEST_CONFIG_EXT_CJS: string;

              variable JEST_CONFIG_EXT_CTS

              const JEST_CONFIG_EXT_CTS: string;

                variable JEST_CONFIG_EXT_JS

                const JEST_CONFIG_EXT_JS: string;

                  variable JEST_CONFIG_EXT_JSON

                  const JEST_CONFIG_EXT_JSON: string;

                    variable JEST_CONFIG_EXT_MJS

                    const JEST_CONFIG_EXT_MJS: string;

                      variable JEST_CONFIG_EXT_ORDER

                      const JEST_CONFIG_EXT_ORDER: readonly string[];

                        variable JEST_CONFIG_EXT_TS

                        const JEST_CONFIG_EXT_TS: string;

                          variable NODE_MODULES

                          const NODE_MODULES: string;

                            variable PACKAGE_JSON

                            const PACKAGE_JSON: string;

                              Functions

                              function isJSONString

                              isJSONString: (text?: JSONString | string) => text is JSONString;

                                function normalize

                                normalize: (
                                initialOptions: Config.InitialOptions,
                                argv: Config.Argv,
                                configPath?: string | null,
                                projectIndex?: number,
                                isProjectOptions?: boolean
                                ) => Promise<{ hasDeprecationWarnings: boolean; options: AllOptions }>;

                                  function readConfig

                                  readConfig: (
                                  argv: Config.Argv,
                                  packageRootOrConfig: string | Config.InitialOptions,
                                  skipArgvConfigOption?: boolean,
                                  parentConfigDirname?: string | null,
                                  projectIndex?: number,
                                  skipMultipleConfigError?: boolean
                                  ) => Promise<ReadConfig>;

                                    function readConfigs

                                    readConfigs: (
                                    argv: Config.Argv,
                                    projectPaths: Array<string>
                                    ) => Promise<{
                                    globalConfig: Config.GlobalConfig;
                                    configs: Array<Config.ProjectConfig>;
                                    hasDeprecationWarnings: boolean;
                                    }>;

                                      function readInitialOptions

                                      readInitialOptions: (
                                      config?: string,
                                      {
                                      packageRootOrConfig,
                                      parentConfigDirname,
                                      readFromCwd,
                                      skipMultipleConfigError,
                                      }?: ReadJestConfigOptions
                                      ) => Promise<{ config: Config.InitialOptions; configPath: string | null }>;
                                      • Reads the jest config, without validating them or filling it out with defaults.

                                        Parameter config

                                        The path to the file or serialized config.

                                        Parameter param1

                                        Additional options

                                        Returns

                                        The raw initial config (not validated)

                                      function replaceRootDirInPath

                                      replaceRootDirInPath: (rootDir: string, filePath: string) => string;

                                        Interfaces

                                        interface ReadJestConfigOptions

                                        interface ReadJestConfigOptions {}

                                          property packageRootOrConfig

                                          packageRootOrConfig?: string | Config.InitialOptions;
                                          • The package root or deserialized config (default is cwd)

                                          property parentConfigDirname

                                          parentConfigDirname?: null | string;
                                          • When the packageRootOrConfig contains config, this parameter should contain the dirname of the parent config

                                          property readFromCwd

                                          readFromCwd?: boolean;
                                          • Indicates whether or not to read the specified config file from disk. When true, jest will read try to read config from the current working directory. (default is false)

                                          property skipMultipleConfigError

                                          skipMultipleConfigError?: boolean;
                                          • Indicates whether or not to ignore the error of jest finding multiple config files. (default is false)

                                          Namespaces

                                          namespace constants

                                          namespace constants {}

                                            variable DEFAULT_JS_PATTERN

                                            const DEFAULT_JS_PATTERN: string;

                                              variable JEST_CONFIG_BASE_NAME

                                              const JEST_CONFIG_BASE_NAME: string;

                                                variable JEST_CONFIG_EXT_CJS

                                                const JEST_CONFIG_EXT_CJS: string;

                                                  variable JEST_CONFIG_EXT_CTS

                                                  const JEST_CONFIG_EXT_CTS: string;

                                                    variable JEST_CONFIG_EXT_JS

                                                    const JEST_CONFIG_EXT_JS: string;

                                                      variable JEST_CONFIG_EXT_JSON

                                                      const JEST_CONFIG_EXT_JSON: string;

                                                        variable JEST_CONFIG_EXT_MJS

                                                        const JEST_CONFIG_EXT_MJS: string;

                                                          variable JEST_CONFIG_EXT_ORDER

                                                          const JEST_CONFIG_EXT_ORDER: readonly string[];

                                                            variable JEST_CONFIG_EXT_TS

                                                            const JEST_CONFIG_EXT_TS: string;

                                                              variable NODE_MODULES

                                                              const NODE_MODULES: string;

                                                                variable PACKAGE_JSON

                                                                const PACKAGE_JSON: string;

                                                                  Package Files (1)

                                                                  Dependencies (24)

                                                                  Dev Dependencies (8)

                                                                  Peer Dependencies (3)

                                                                  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/jest-config.

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