This commit is contained in:
22
node_modules/jest-config/LICENSE
generated
vendored
Normal file
22
node_modules/jest-config/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
Copyright Contributors to the Jest project.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
201
node_modules/jest-config/build/index.d.ts
generated
vendored
Normal file
201
node_modules/jest-config/build/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {Config} from '@jest/types';
|
||||
import {DeprecatedOptions} from 'jest-validate';
|
||||
|
||||
declare type AllOptions = Config.ProjectConfig & Config.GlobalConfig;
|
||||
|
||||
declare namespace constants {
|
||||
export {
|
||||
NODE_MODULES,
|
||||
DEFAULT_JS_PATTERN,
|
||||
PACKAGE_JSON,
|
||||
JEST_CONFIG_BASE_NAME,
|
||||
JEST_CONFIG_EXT_CJS,
|
||||
JEST_CONFIG_EXT_MJS,
|
||||
JEST_CONFIG_EXT_MTS,
|
||||
JEST_CONFIG_EXT_JS,
|
||||
JEST_CONFIG_EXT_TS,
|
||||
JEST_CONFIG_EXT_CTS,
|
||||
JEST_CONFIG_EXT_JSON,
|
||||
JEST_CONFIG_EXT_ORDER,
|
||||
};
|
||||
}
|
||||
export {constants};
|
||||
|
||||
declare const DEFAULT_JS_PATTERN = '\\.[jt]sx?$';
|
||||
|
||||
export declare const defaults: Config.DefaultOptions;
|
||||
|
||||
/**
|
||||
* Type helper to make it easier to use Jest config accepts a direct JestTestConfigObject object, or a function that returns it. The function receives a JestTestConfigObject object.
|
||||
*/
|
||||
export declare function defineConfig(
|
||||
config: JestTestConfigObject,
|
||||
): JestTestConfigObject;
|
||||
|
||||
export declare function defineConfig(
|
||||
config: Promise<JestTestConfigObject>,
|
||||
): Promise<JestTestConfigObject>;
|
||||
|
||||
export declare function defineConfig(
|
||||
config: UserConfigFnObject,
|
||||
): UserConfigFnObject;
|
||||
|
||||
export declare function defineConfig(
|
||||
config: UserConfigFnPromise,
|
||||
): UserConfigFnPromise;
|
||||
|
||||
export declare function defineConfig(config: UserConfigFn): UserConfigFn;
|
||||
|
||||
export declare const deprecationEntries: DeprecatedOptions;
|
||||
|
||||
export declare const descriptions: {
|
||||
[key in keyof Config.InitialOptions]: string;
|
||||
};
|
||||
|
||||
export declare const isJSONString: (
|
||||
text?: JSONString | string,
|
||||
) => text is JSONString;
|
||||
|
||||
declare const JEST_CONFIG_BASE_NAME = 'jest.config';
|
||||
|
||||
declare const JEST_CONFIG_EXT_CJS = '.cjs';
|
||||
|
||||
declare const JEST_CONFIG_EXT_CTS = '.cts';
|
||||
|
||||
declare const JEST_CONFIG_EXT_JS = '.js';
|
||||
|
||||
declare const JEST_CONFIG_EXT_JSON = '.json';
|
||||
|
||||
declare const JEST_CONFIG_EXT_MJS = '.mjs';
|
||||
|
||||
declare const JEST_CONFIG_EXT_MTS = '.mts';
|
||||
|
||||
declare const JEST_CONFIG_EXT_ORDER: ReadonlyArray<string>;
|
||||
|
||||
declare const JEST_CONFIG_EXT_TS = '.ts';
|
||||
|
||||
declare type JestTestConfigObject = Config.InitialOptions;
|
||||
|
||||
declare type JSONString = string & {
|
||||
readonly $$type: never;
|
||||
};
|
||||
|
||||
/**
|
||||
* Merges two configuration objects, where the second object takes precedence over the first one.
|
||||
*/
|
||||
export declare function mergeConfig<
|
||||
D extends UserConfigExport,
|
||||
O extends UserConfigExport,
|
||||
>(
|
||||
defaults: D extends Function ? never : D,
|
||||
overrides: O extends Function ? never : O,
|
||||
): JestTestConfigObject;
|
||||
|
||||
declare const NODE_MODULES: string;
|
||||
|
||||
export declare function normalize(
|
||||
initialOptions: Config.InitialOptions,
|
||||
argv: Config.Argv,
|
||||
configPath?: string | null,
|
||||
projectIndex?: number,
|
||||
isProjectOptions?: boolean,
|
||||
): Promise<{
|
||||
hasDeprecationWarnings: boolean;
|
||||
options: AllOptions;
|
||||
}>;
|
||||
|
||||
declare const PACKAGE_JSON = 'package.json';
|
||||
|
||||
declare type ReadConfig = {
|
||||
configPath: string | null | undefined;
|
||||
globalConfig: Config.GlobalConfig;
|
||||
hasDeprecationWarnings: boolean;
|
||||
projectConfig: Config.ProjectConfig;
|
||||
};
|
||||
|
||||
export declare function readConfig(
|
||||
argv: Config.Argv,
|
||||
packageRootOrConfig: string | Config.InitialOptions,
|
||||
skipArgvConfigOption?: boolean,
|
||||
parentConfigDirname?: string | null,
|
||||
projectIndex?: number,
|
||||
skipMultipleConfigError?: boolean,
|
||||
): Promise<ReadConfig>;
|
||||
|
||||
export declare function readConfigs(
|
||||
argv: Config.Argv,
|
||||
projectPaths: Array<string>,
|
||||
): Promise<{
|
||||
globalConfig: Config.GlobalConfig;
|
||||
configs: Array<Config.ProjectConfig>;
|
||||
hasDeprecationWarnings: boolean;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Reads the jest config, without validating them or filling it out with defaults.
|
||||
* @param config The path to the file or serialized config.
|
||||
* @param param1 Additional options
|
||||
* @returns The raw initial config (not validated)
|
||||
*/
|
||||
export declare function readInitialOptions(
|
||||
config?: string,
|
||||
{
|
||||
packageRootOrConfig,
|
||||
parentConfigDirname,
|
||||
readFromCwd,
|
||||
skipMultipleConfigError,
|
||||
}?: ReadJestConfigOptions,
|
||||
): Promise<{
|
||||
config: Config.InitialOptions;
|
||||
configPath: string | null;
|
||||
}>;
|
||||
|
||||
export declare interface ReadJestConfigOptions {
|
||||
/**
|
||||
* The package root or deserialized config (default is cwd)
|
||||
*/
|
||||
packageRootOrConfig?: string | Config.InitialOptions;
|
||||
/**
|
||||
* When the `packageRootOrConfig` contains config, this parameter should
|
||||
* contain the dirname of the parent config
|
||||
*/
|
||||
parentConfigDirname?: null | string;
|
||||
/**
|
||||
* 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)
|
||||
*/
|
||||
readFromCwd?: boolean;
|
||||
/**
|
||||
* Indicates whether or not to ignore the error of jest finding multiple config files.
|
||||
* (default is false)
|
||||
*/
|
||||
skipMultipleConfigError?: boolean;
|
||||
}
|
||||
|
||||
export declare const replaceRootDirInPath: (
|
||||
rootDir: string,
|
||||
filePath: string,
|
||||
) => string;
|
||||
|
||||
declare type UserConfigExport =
|
||||
| JestTestConfigObject
|
||||
| Promise<JestTestConfigObject>
|
||||
| UserConfigFnObject
|
||||
| UserConfigFnPromise
|
||||
| UserConfigFn;
|
||||
|
||||
declare type UserConfigFn = () =>
|
||||
| JestTestConfigObject
|
||||
| Promise<JestTestConfigObject>;
|
||||
|
||||
declare type UserConfigFnObject = () => JestTestConfigObject;
|
||||
|
||||
declare type UserConfigFnPromise = () => Promise<JestTestConfigObject>;
|
||||
2903
node_modules/jest-config/build/index.js
generated
vendored
Normal file
2903
node_modules/jest-config/build/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
14
node_modules/jest-config/build/index.mjs
generated
vendored
Normal file
14
node_modules/jest-config/build/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import cjsModule from './index.js';
|
||||
|
||||
export const constants = cjsModule.constants;
|
||||
export const defaults = cjsModule.defaults;
|
||||
export const defineConfig = cjsModule.defineConfig;
|
||||
export const deprecationEntries = cjsModule.deprecationEntries;
|
||||
export const descriptions = cjsModule.descriptions;
|
||||
export const isJSONString = cjsModule.isJSONString;
|
||||
export const mergeConfig = cjsModule.mergeConfig;
|
||||
export const normalize = cjsModule.normalize;
|
||||
export const readConfig = cjsModule.readConfig;
|
||||
export const readConfigs = cjsModule.readConfigs;
|
||||
export const readInitialOptions = cjsModule.readInitialOptions;
|
||||
export const replaceRootDirInPath = cjsModule.replaceRootDirInPath;
|
||||
79
node_modules/jest-config/package.json
generated
vendored
Normal file
79
node_modules/jest-config/package.json
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"name": "jest-config",
|
||||
"version": "30.4.2",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jestjs/jest.git",
|
||||
"directory": "packages/jest-config"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./build/index.d.ts",
|
||||
"require": "./build/index.js",
|
||||
"import": "./build/index.mjs",
|
||||
"default": "./build/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/node": "*",
|
||||
"esbuild-register": ">=3.4.0",
|
||||
"ts-node": ">=9.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/node": {
|
||||
"optional": true
|
||||
},
|
||||
"esbuild-register": {
|
||||
"optional": true
|
||||
},
|
||||
"ts-node": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.27.4",
|
||||
"@jest/get-type": "30.1.0",
|
||||
"@jest/pattern": "30.4.0",
|
||||
"@jest/test-sequencer": "30.4.1",
|
||||
"@jest/types": "30.4.1",
|
||||
"babel-jest": "30.4.1",
|
||||
"chalk": "^4.1.2",
|
||||
"ci-info": "^4.2.0",
|
||||
"deepmerge": "^4.3.1",
|
||||
"glob": "^10.5.0",
|
||||
"graceful-fs": "^4.2.11",
|
||||
"jest-circus": "30.4.2",
|
||||
"jest-docblock": "30.4.0",
|
||||
"jest-environment-node": "30.4.1",
|
||||
"jest-regex-util": "30.4.0",
|
||||
"jest-resolve": "30.4.1",
|
||||
"jest-runner": "30.4.2",
|
||||
"jest-util": "30.4.1",
|
||||
"jest-validate": "30.4.1",
|
||||
"parse-json": "^5.2.0",
|
||||
"pretty-format": "30.4.1",
|
||||
"slash": "^3.0.0",
|
||||
"strip-json-comments": "^3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/test-utils": "30.4.1",
|
||||
"@types/graceful-fs": "^4.1.9",
|
||||
"@types/parse-json": "^4.0.2",
|
||||
"esbuild": "^0.28.0",
|
||||
"esbuild-register": "^3.6.0",
|
||||
"semver": "^7.7.2",
|
||||
"ts-node": "^10.5.0",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "746f2a0f57c56e3bba555280f0587d40f3db95c0"
|
||||
}
|
||||
Reference in New Issue
Block a user