aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@jest/types
diff options
context:
space:
mode:
authorJoel Kronqvist <work.joelkronqvist@pm.me>2022-03-11 20:46:06 +0200
committerJoel Kronqvist <work.joelkronqvist@pm.me>2022-03-11 20:46:06 +0200
commit080c5819d87b933816d724a83f3bf4f1686770a7 (patch)
tree4a2ccc68b27edf7d4cbc586c932cc7542b655e19 /node_modules/@jest/types
parent5ac7049a9d30733165cc212dee308163c2a14644 (diff)
parentd003b82235a9329f912522a2f70aa950dfce4998 (diff)
downloadLYLLRuoka-080c5819d87b933816d724a83f3bf4f1686770a7.tar.gz
LYLLRuoka-080c5819d87b933816d724a83f3bf4f1686770a7.zip
Merge branch 'master' of https://github.com/JoelHMikael/FoodJS
Updating remote changes
Diffstat (limited to 'node_modules/@jest/types')
-rw-r--r--node_modules/@jest/types/LICENSE21
-rw-r--r--node_modules/@jest/types/build/Circus.d.ts193
-rw-r--r--node_modules/@jest/types/build/Circus.js1
-rw-r--r--node_modules/@jest/types/build/Config.d.ts462
-rw-r--r--node_modules/@jest/types/build/Config.js1
-rw-r--r--node_modules/@jest/types/build/Global.d.ts95
-rw-r--r--node_modules/@jest/types/build/Global.js1
-rw-r--r--node_modules/@jest/types/build/TestResult.d.ts31
-rw-r--r--node_modules/@jest/types/build/TestResult.js1
-rw-r--r--node_modules/@jest/types/build/Transform.d.ts11
-rw-r--r--node_modules/@jest/types/build/Transform.js1
-rw-r--r--node_modules/@jest/types/build/index.d.ts12
-rw-r--r--node_modules/@jest/types/build/index.js1
-rw-r--r--node_modules/@jest/types/package.json37
14 files changed, 868 insertions, 0 deletions
diff --git a/node_modules/@jest/types/LICENSE b/node_modules/@jest/types/LICENSE
new file mode 100644
index 0000000..b96dcb0
--- /dev/null
+++ b/node_modules/@jest/types/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Facebook, Inc. and its affiliates.
+
+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.
diff --git a/node_modules/@jest/types/build/Circus.d.ts b/node_modules/@jest/types/build/Circus.d.ts
new file mode 100644
index 0000000..683832e
--- /dev/null
+++ b/node_modules/@jest/types/build/Circus.d.ts
@@ -0,0 +1,193 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+/// <reference types="node" />
+import type * as Global from './Global';
+declare type Process = NodeJS.Process;
+export declare type DoneFn = Global.DoneFn;
+export declare type BlockFn = Global.BlockFn;
+export declare type BlockName = Global.BlockName;
+export declare type BlockMode = void | 'skip' | 'only' | 'todo';
+export declare type TestMode = BlockMode;
+export declare type TestName = Global.TestName;
+export declare type TestFn = Global.TestFn;
+export declare type HookFn = Global.HookFn;
+export declare type AsyncFn = TestFn | HookFn;
+export declare type SharedHookType = 'afterAll' | 'beforeAll';
+export declare type HookType = SharedHookType | 'afterEach' | 'beforeEach';
+export declare type TestContext = Global.TestContext;
+export declare type Exception = any;
+export declare type FormattedError = string;
+export declare type Hook = {
+ asyncError: Error;
+ fn: HookFn;
+ type: HookType;
+ parent: DescribeBlock;
+ seenDone: boolean;
+ timeout: number | undefined | null;
+};
+export interface EventHandler {
+ (event: AsyncEvent, state: State): void | Promise<void>;
+ (event: SyncEvent, state: State): void;
+}
+export declare type Event = SyncEvent | AsyncEvent;
+interface JestGlobals extends Global.TestFrameworkGlobals {
+ expect: unknown;
+}
+export declare type SyncEvent = {
+ asyncError: Error;
+ mode: BlockMode;
+ name: 'start_describe_definition';
+ blockName: BlockName;
+} | {
+ mode: BlockMode;
+ name: 'finish_describe_definition';
+ blockName: BlockName;
+} | {
+ asyncError: Error;
+ name: 'add_hook';
+ hookType: HookType;
+ fn: HookFn;
+ timeout: number | undefined;
+} | {
+ asyncError: Error;
+ name: 'add_test';
+ testName: TestName;
+ fn: TestFn;
+ mode?: TestMode;
+ timeout: number | undefined;
+} | {
+ name: 'error';
+ error: Exception;
+};
+export declare type AsyncEvent = {
+ name: 'setup';
+ testNamePattern?: string;
+ runtimeGlobals: JestGlobals;
+ parentProcess: Process;
+} | {
+ name: 'include_test_location_in_result';
+} | {
+ name: 'hook_start';
+ hook: Hook;
+} | {
+ name: 'hook_success';
+ describeBlock?: DescribeBlock;
+ test?: TestEntry;
+ hook: Hook;
+} | {
+ name: 'hook_failure';
+ error: string | Exception;
+ describeBlock?: DescribeBlock;
+ test?: TestEntry;
+ hook: Hook;
+} | {
+ name: 'test_fn_start';
+ test: TestEntry;
+} | {
+ name: 'test_fn_success';
+ test: TestEntry;
+} | {
+ name: 'test_fn_failure';
+ error: Exception;
+ test: TestEntry;
+} | {
+ name: 'test_retry';
+ test: TestEntry;
+} | {
+ name: 'test_start';
+ test: TestEntry;
+} | {
+ name: 'test_skip';
+ test: TestEntry;
+} | {
+ name: 'test_todo';
+ test: TestEntry;
+} | {
+ name: 'test_done';
+ test: TestEntry;
+} | {
+ name: 'run_describe_start';
+ describeBlock: DescribeBlock;
+} | {
+ name: 'run_describe_finish';
+ describeBlock: DescribeBlock;
+} | {
+ name: 'run_start';
+} | {
+ name: 'run_finish';
+} | {
+ name: 'teardown';
+};
+export declare type MatcherResults = {
+ actual: unknown;
+ expected: unknown;
+ name: string;
+ pass: boolean;
+};
+export declare type TestStatus = 'skip' | 'done' | 'todo';
+export declare type TestResult = {
+ duration?: number | null;
+ errors: Array<FormattedError>;
+ errorsDetailed: Array<MatcherResults | unknown>;
+ invocations: number;
+ status: TestStatus;
+ location?: {
+ column: number;
+ line: number;
+ } | null;
+ testPath: Array<TestName | BlockName>;
+};
+export declare type RunResult = {
+ unhandledErrors: Array<FormattedError>;
+ testResults: TestResults;
+};
+export declare type TestResults = Array<TestResult>;
+export declare type GlobalErrorHandlers = {
+ uncaughtException: Array<(exception: Exception) => void>;
+ unhandledRejection: Array<(exception: Exception, promise: Promise<unknown>) => void>;
+};
+export declare type State = {
+ currentDescribeBlock: DescribeBlock;
+ currentlyRunningTest?: TestEntry | null;
+ expand?: boolean;
+ hasFocusedTests: boolean;
+ hasStarted: boolean;
+ originalGlobalErrorHandlers?: GlobalErrorHandlers;
+ parentProcess: Process | null;
+ rootDescribeBlock: DescribeBlock;
+ testNamePattern?: RegExp | null;
+ testTimeout: number;
+ unhandledErrors: Array<Exception>;
+ includeTestLocationInResult: boolean;
+};
+export declare type DescribeBlock = {
+ type: 'describeBlock';
+ children: Array<DescribeBlock | TestEntry>;
+ hooks: Array<Hook>;
+ mode: BlockMode;
+ name: BlockName;
+ parent?: DescribeBlock;
+ /** @deprecated Please get from `children` array instead */
+ tests: Array<TestEntry>;
+};
+export declare type TestError = Exception | [Exception | undefined, Exception];
+export declare type TestEntry = {
+ type: 'test';
+ asyncError: Exception;
+ errors: Array<TestError>;
+ fn: TestFn;
+ invocations: number;
+ mode: TestMode;
+ name: TestName;
+ parent: DescribeBlock;
+ startedAt?: number | null;
+ duration?: number | null;
+ seenDone: boolean;
+ status?: TestStatus | null;
+ timeout?: number;
+};
+export {};
diff --git a/node_modules/@jest/types/build/Circus.js b/node_modules/@jest/types/build/Circus.js
new file mode 100644
index 0000000..ad9a93a
--- /dev/null
+++ b/node_modules/@jest/types/build/Circus.js
@@ -0,0 +1 @@
+'use strict';
diff --git a/node_modules/@jest/types/build/Config.d.ts b/node_modules/@jest/types/build/Config.d.ts
new file mode 100644
index 0000000..6290147
--- /dev/null
+++ b/node_modules/@jest/types/build/Config.d.ts
@@ -0,0 +1,462 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+import type { ForegroundColor } from 'chalk';
+import type { ReportOptions } from 'istanbul-reports';
+import type { Arguments } from 'yargs';
+declare type CoverageProvider = 'babel' | 'v8';
+declare type Timers = 'real' | 'fake' | 'modern' | 'legacy';
+export declare type Path = string;
+export declare type Glob = string;
+export declare type HasteConfig = {
+ /** Whether to hash files using SHA-1. */
+ computeSha1?: boolean;
+ /** The platform to use as the default, e.g. 'ios'. */
+ defaultPlatform?: string | null;
+ /** Force use of Node's `fs` APIs rather than shelling out to `find` */
+ forceNodeFilesystemAPI?: boolean;
+ /**
+ * Whether to follow symlinks when crawling for files.
+ * This options cannot be used in projects which use watchman.
+ * Projects with `watchman` set to true will error if this option is set to true.
+ */
+ enableSymlinks?: boolean;
+ /** Path to a custom implementation of Haste. */
+ hasteImplModulePath?: string;
+ /** All platforms to target, e.g ['ios', 'android']. */
+ platforms?: Array<string>;
+ /** Whether to throw on error on module collision. */
+ throwOnModuleCollision?: boolean;
+ /** Custom HasteMap module */
+ hasteMapModulePath?: string;
+};
+export declare type CoverageReporterName = keyof ReportOptions;
+export declare type CoverageReporterWithOptions<K = CoverageReporterName> = K extends CoverageReporterName ? ReportOptions[K] extends never ? never : [K, Partial<ReportOptions[K]>] : never;
+export declare type CoverageReporters = Array<CoverageReporterName | CoverageReporterWithOptions>;
+export declare type ReporterConfig = [string, Record<string, unknown>];
+export declare type TransformerConfig = [string, Record<string, unknown>];
+export interface ConfigGlobals {
+ [K: string]: unknown;
+}
+export interface PrettyFormatOptions {
+}
+export declare type DefaultOptions = {
+ automock: boolean;
+ bail: number;
+ cache: boolean;
+ cacheDirectory: Path;
+ changedFilesWithAncestor: boolean;
+ ci: boolean;
+ clearMocks: boolean;
+ collectCoverage: boolean;
+ coveragePathIgnorePatterns: Array<string>;
+ coverageReporters: Array<CoverageReporterName>;
+ coverageProvider: CoverageProvider;
+ detectLeaks: boolean;
+ detectOpenHandles: boolean;
+ errorOnDeprecated: boolean;
+ expand: boolean;
+ extensionsToTreatAsEsm: Array<Path>;
+ forceCoverageMatch: Array<Glob>;
+ globals: ConfigGlobals;
+ haste: HasteConfig;
+ injectGlobals: boolean;
+ listTests: boolean;
+ maxConcurrency: number;
+ maxWorkers: number | string;
+ moduleDirectories: Array<string>;
+ moduleFileExtensions: Array<string>;
+ moduleNameMapper: Record<string, string | Array<string>>;
+ modulePathIgnorePatterns: Array<string>;
+ noStackTrace: boolean;
+ notify: boolean;
+ notifyMode: NotifyMode;
+ passWithNoTests: boolean;
+ prettierPath: string;
+ resetMocks: boolean;
+ resetModules: boolean;
+ restoreMocks: boolean;
+ roots: Array<Path>;
+ runTestsByPath: boolean;
+ runner: string;
+ setupFiles: Array<Path>;
+ setupFilesAfterEnv: Array<Path>;
+ skipFilter: boolean;
+ slowTestThreshold: number;
+ snapshotSerializers: Array<Path>;
+ testEnvironment: string;
+ testEnvironmentOptions: Record<string, unknown>;
+ testFailureExitCode: string | number;
+ testLocationInResults: boolean;
+ testMatch: Array<Glob>;
+ testPathIgnorePatterns: Array<string>;
+ testRegex: Array<string>;
+ testRunner: string;
+ testSequencer: string;
+ testURL: string;
+ timers: Timers;
+ transformIgnorePatterns: Array<Glob>;
+ useStderr: boolean;
+ watch: boolean;
+ watchPathIgnorePatterns: Array<string>;
+ watchman: boolean;
+};
+export declare type DisplayName = {
+ name: string;
+ color: typeof ForegroundColor;
+};
+export declare type InitialOptionsWithRootDir = InitialOptions & Required<Pick<InitialOptions, 'rootDir'>>;
+export declare type InitialProjectOptions = Pick<InitialOptions & {
+ cwd?: string;
+}, keyof ProjectConfig>;
+export declare type InitialOptions = Partial<{
+ automock: boolean;
+ bail: boolean | number;
+ cache: boolean;
+ cacheDirectory: Path;
+ ci: boolean;
+ clearMocks: boolean;
+ changedFilesWithAncestor: boolean;
+ changedSince: string;
+ collectCoverage: boolean;
+ collectCoverageFrom: Array<Glob>;
+ collectCoverageOnlyFrom: {
+ [key: string]: boolean;
+ };
+ coverageDirectory: string;
+ coveragePathIgnorePatterns: Array<string>;
+ coverageProvider: CoverageProvider;
+ coverageReporters: CoverageReporters;
+ coverageThreshold: CoverageThreshold;
+ dependencyExtractor: string;
+ detectLeaks: boolean;
+ detectOpenHandles: boolean;
+ displayName: string | DisplayName;
+ expand: boolean;
+ extensionsToTreatAsEsm: Array<Path>;
+ extraGlobals: Array<string>;
+ filter: Path;
+ findRelatedTests: boolean;
+ forceCoverageMatch: Array<Glob>;
+ forceExit: boolean;
+ json: boolean;
+ globals: ConfigGlobals;
+ globalSetup: string | null | undefined;
+ globalTeardown: string | null | undefined;
+ haste: HasteConfig;
+ injectGlobals: boolean;
+ reporters: Array<string | ReporterConfig>;
+ logHeapUsage: boolean;
+ lastCommit: boolean;
+ listTests: boolean;
+ maxConcurrency: number;
+ maxWorkers: number | string;
+ moduleDirectories: Array<string>;
+ moduleFileExtensions: Array<string>;
+ moduleLoader: Path;
+ moduleNameMapper: {
+ [key: string]: string | Array<string>;
+ };
+ modulePathIgnorePatterns: Array<string>;
+ modulePaths: Array<string>;
+ name: string;
+ noStackTrace: boolean;
+ notify: boolean;
+ notifyMode: string;
+ onlyChanged: boolean;
+ onlyFailures: boolean;
+ outputFile: Path;
+ passWithNoTests: boolean;
+ /**
+ * @deprecated Use `transformIgnorePatterns` options instead.
+ */
+ preprocessorIgnorePatterns: Array<Glob>;
+ preset: string | null | undefined;
+ prettierPath: string | null | undefined;
+ projects: Array<Glob | InitialProjectOptions>;
+ replname: string | null | undefined;
+ resetMocks: boolean;
+ resetModules: boolean;
+ resolver: Path | null | undefined;
+ restoreMocks: boolean;
+ rootDir: Path;
+ roots: Array<Path>;
+ runner: string;
+ runTestsByPath: boolean;
+ /**
+ * @deprecated Use `transform` options instead.
+ */
+ scriptPreprocessor: string;
+ setupFiles: Array<Path>;
+ /**
+ * @deprecated Use `setupFilesAfterEnv` options instead.
+ */
+ setupTestFrameworkScriptFile: Path;
+ setupFilesAfterEnv: Array<Path>;
+ silent: boolean;
+ skipFilter: boolean;
+ skipNodeResolution: boolean;
+ slowTestThreshold: number;
+ snapshotResolver: Path;
+ snapshotSerializers: Array<Path>;
+ snapshotFormat: PrettyFormatOptions;
+ errorOnDeprecated: boolean;
+ testEnvironment: string;
+ testEnvironmentOptions: Record<string, unknown>;
+ testFailureExitCode: string | number;
+ testLocationInResults: boolean;
+ testMatch: Array<Glob>;
+ testNamePattern: string;
+ /**
+ * @deprecated Use `roots` options instead.
+ */
+ testPathDirs: Array<Path>;
+ testPathIgnorePatterns: Array<string>;
+ testRegex: string | Array<string>;
+ testResultsProcessor: string;
+ testRunner: string;
+ testSequencer: string;
+ testURL: string;
+ testTimeout: number;
+ timers: Timers;
+ transform: {
+ [regex: string]: Path | TransformerConfig;
+ };
+ transformIgnorePatterns: Array<Glob>;
+ watchPathIgnorePatterns: Array<string>;
+ unmockedModulePathPatterns: Array<string>;
+ updateSnapshot: boolean;
+ useStderr: boolean;
+ verbose?: boolean;
+ watch: boolean;
+ watchAll: boolean;
+ watchman: boolean;
+ watchPlugins: Array<string | [string, Record<string, unknown>]>;
+}>;
+export declare type SnapshotUpdateState = 'all' | 'new' | 'none';
+declare type NotifyMode = 'always' | 'failure' | 'success' | 'change' | 'success-change' | 'failure-change';
+export declare type CoverageThresholdValue = {
+ branches?: number;
+ functions?: number;
+ lines?: number;
+ statements?: number;
+};
+declare type CoverageThreshold = {
+ [path: string]: CoverageThresholdValue;
+ global: CoverageThresholdValue;
+};
+export declare type GlobalConfig = {
+ bail: number;
+ changedSince?: string;
+ changedFilesWithAncestor: boolean;
+ collectCoverage: boolean;
+ collectCoverageFrom: Array<Glob>;
+ collectCoverageOnlyFrom?: {
+ [key: string]: boolean;
+ };
+ coverageDirectory: string;
+ coveragePathIgnorePatterns?: Array<string>;
+ coverageProvider: CoverageProvider;
+ coverageReporters: CoverageReporters;
+ coverageThreshold?: CoverageThreshold;
+ detectLeaks: boolean;
+ detectOpenHandles: boolean;
+ expand: boolean;
+ filter?: Path;
+ findRelatedTests: boolean;
+ forceExit: boolean;
+ json: boolean;
+ globalSetup?: string;
+ globalTeardown?: string;
+ lastCommit: boolean;
+ logHeapUsage: boolean;
+ listTests: boolean;
+ maxConcurrency: number;
+ maxWorkers: number;
+ noStackTrace: boolean;
+ nonFlagArgs: Array<string>;
+ noSCM?: boolean;
+ notify: boolean;
+ notifyMode: NotifyMode;
+ outputFile?: Path;
+ onlyChanged: boolean;
+ onlyFailures: boolean;
+ passWithNoTests: boolean;
+ projects: Array<Glob>;
+ replname?: string;
+ reporters?: Array<string | ReporterConfig>;
+ runTestsByPath: boolean;
+ rootDir: Path;
+ silent?: boolean;
+ skipFilter: boolean;
+ snapshotFormat: PrettyFormatOptions;
+ errorOnDeprecated: boolean;
+ testFailureExitCode: number;
+ testNamePattern?: string;
+ testPathPattern: string;
+ testResultsProcessor?: string;
+ testSequencer: string;
+ testTimeout?: number;
+ updateSnapshot: SnapshotUpdateState;
+ useStderr: boolean;
+ verbose?: boolean;
+ watch: boolean;
+ watchAll: boolean;
+ watchman: boolean;
+ watchPlugins?: Array<{
+ path: string;
+ config: Record<string, unknown>;
+ }> | null;
+};
+export declare type ProjectConfig = {
+ automock: boolean;
+ cache: boolean;
+ cacheDirectory: Path;
+ clearMocks: boolean;
+ coveragePathIgnorePatterns: Array<string>;
+ cwd: Path;
+ dependencyExtractor?: string;
+ detectLeaks: boolean;
+ detectOpenHandles: boolean;
+ displayName?: DisplayName;
+ errorOnDeprecated: boolean;
+ extensionsToTreatAsEsm: Array<Path>;
+ extraGlobals: Array<keyof typeof globalThis>;
+ filter?: Path;
+ forceCoverageMatch: Array<Glob>;
+ globalSetup?: string;
+ globalTeardown?: string;
+ globals: ConfigGlobals;
+ haste: HasteConfig;
+ injectGlobals: boolean;
+ moduleDirectories: Array<string>;
+ moduleFileExtensions: Array<string>;
+ moduleLoader?: Path;
+ moduleNameMapper: Array<[string, string]>;
+ modulePathIgnorePatterns: Array<string>;
+ modulePaths?: Array<string>;
+ name: string;
+ prettierPath: string;
+ resetMocks: boolean;
+ resetModules: boolean;
+ resolver?: Path;
+ restoreMocks: boolean;
+ rootDir: Path;
+ roots: Array<Path>;
+ runner: string;
+ setupFiles: Array<Path>;
+ setupFilesAfterEnv: Array<Path>;
+ skipFilter: boolean;
+ skipNodeResolution?: boolean;
+ slowTestThreshold: number;
+ snapshotResolver?: Path;
+ snapshotSerializers: Array<Path>;
+ snapshotFormat: PrettyFormatOptions;
+ testEnvironment: string;
+ testEnvironmentOptions: Record<string, unknown>;
+ testMatch: Array<Glob>;
+ testLocationInResults: boolean;
+ testPathIgnorePatterns: Array<string>;
+ testRegex: Array<string | RegExp>;
+ testRunner: string;
+ testURL: string;
+ timers: Timers;
+ transform: Array<[string, Path, Record<string, unknown>]>;
+ transformIgnorePatterns: Array<Glob>;
+ watchPathIgnorePatterns: Array<string>;
+ unmockedModulePathPatterns?: Array<string>;
+};
+export declare type Argv = Arguments<Partial<{
+ all: boolean;
+ automock: boolean;
+ bail: boolean | number;
+ cache: boolean;
+ cacheDirectory: string;
+ changedFilesWithAncestor: boolean;
+ changedSince: string;
+ ci: boolean;
+ clearCache: boolean;
+ clearMocks: boolean;
+ collectCoverage: boolean;
+ collectCoverageFrom: string;
+ collectCoverageOnlyFrom: Array<string>;
+ color: boolean;
+ colors: boolean;
+ config: string;
+ coverage: boolean;
+ coverageDirectory: string;
+ coveragePathIgnorePatterns: Array<string>;
+ coverageReporters: Array<string>;
+ coverageThreshold: string;
+ debug: boolean;
+ env: string;
+ expand: boolean;
+ findRelatedTests: boolean;
+ forceExit: boolean;
+ globals: string;
+ globalSetup: string | null | undefined;
+ globalTeardown: string | null | undefined;
+ haste: string;
+ init: boolean;
+ injectGlobals: boolean;
+ json: boolean;
+ lastCommit: boolean;
+ logHeapUsage: boolean;
+ maxWorkers: number | string;
+ moduleDirectories: Array<string>;
+ moduleFileExtensions: Array<string>;
+ moduleNameMapper: string;
+ modulePathIgnorePatterns: Array<string>;
+ modulePaths: Array<string>;
+ noStackTrace: boolean;
+ notify: boolean;
+ notifyMode: string;
+ onlyChanged: boolean;
+ onlyFailures: boolean;
+ outputFile: string;
+ preset: string | null | undefined;
+ projects: Array<string>;
+ prettierPath: string | null | undefined;
+ resetMocks: boolean;
+ resetModules: boolean;
+ resolver: string | null | undefined;
+ restoreMocks: boolean;
+ rootDir: string;
+ roots: Array<string>;
+ runInBand: boolean;
+ selectProjects: Array<string>;
+ setupFiles: Array<string>;
+ setupFilesAfterEnv: Array<string>;
+ showConfig: boolean;
+ silent: boolean;
+ snapshotSerializers: Array<string>;
+ testEnvironment: string;
+ testEnvironmentOptions: string;
+ testFailureExitCode: string | null | undefined;
+ testMatch: Array<string>;
+ testNamePattern: string;
+ testPathIgnorePatterns: Array<string>;
+ testPathPattern: Array<string>;
+ testRegex: string | Array<string>;
+ testResultsProcessor: string;
+ testRunner: string;
+ testSequencer: string;
+ testURL: string;
+ testTimeout: number | null | undefined;
+ timers: string;
+ transform: string;
+ transformIgnorePatterns: Array<string>;
+ unmockedModulePathPatterns: Array<string> | null | undefined;
+ updateSnapshot: boolean;
+ useStderr: boolean;
+ verbose: boolean;
+ version: boolean;
+ watch: boolean;
+ watchAll: boolean;
+ watchman: boolean;
+ watchPathIgnorePatterns: Array<string>;
+}>>;
+export {};
diff --git a/node_modules/@jest/types/build/Config.js b/node_modules/@jest/types/build/Config.js
new file mode 100644
index 0000000..ad9a93a
--- /dev/null
+++ b/node_modules/@jest/types/build/Config.js
@@ -0,0 +1 @@
+'use strict';
diff --git a/node_modules/@jest/types/build/Global.d.ts b/node_modules/@jest/types/build/Global.d.ts
new file mode 100644
index 0000000..ed498e5
--- /dev/null
+++ b/node_modules/@jest/types/build/Global.d.ts
@@ -0,0 +1,95 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+import type { CoverageMapData } from 'istanbul-lib-coverage';
+export declare type ValidTestReturnValues = void | undefined;
+declare type TestReturnValuePromise = Promise<unknown>;
+declare type TestReturnValueGenerator = Generator<void, unknown, void>;
+export declare type TestReturnValue = ValidTestReturnValues | TestReturnValuePromise;
+export declare type TestContext = Record<string, unknown>;
+export declare type DoneFn = (reason?: string | Error) => void;
+export declare type DoneTakingTestFn = (this: TestContext | undefined, done: DoneFn) => ValidTestReturnValues;
+export declare type PromiseReturningTestFn = (this: TestContext | undefined) => TestReturnValue;
+export declare type GeneratorReturningTestFn = (this: TestContext | undefined) => TestReturnValueGenerator;
+export declare type TestName = string;
+export declare type TestFn = PromiseReturningTestFn | GeneratorReturningTestFn | DoneTakingTestFn;
+export declare type ConcurrentTestFn = () => TestReturnValuePromise;
+export declare type BlockFn = () => void;
+export declare type BlockName = string;
+export declare type HookFn = TestFn;
+export declare type Col = unknown;
+export declare type Row = ReadonlyArray<Col>;
+export declare type Table = ReadonlyArray<Row>;
+export declare type ArrayTable = Table | Row;
+export declare type TemplateTable = TemplateStringsArray;
+export declare type TemplateData = ReadonlyArray<unknown>;
+export declare type EachTable = ArrayTable | TemplateTable;
+export declare type TestCallback = BlockFn | TestFn | ConcurrentTestFn;
+export declare type EachTestFn<EachCallback extends TestCallback> = (...args: ReadonlyArray<any>) => ReturnType<EachCallback>;
+declare type Jasmine = {
+ _DEFAULT_TIMEOUT_INTERVAL?: number;
+ addMatchers: (matchers: Record<string, unknown>) => void;
+};
+declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: TemplateData) => (name: BlockName | TestName, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => () => void);
+export interface HookBase {
+ (fn: HookFn, timeout?: number): void;
+}
+export interface ItBase {
+ (testName: TestName, fn: TestFn, timeout?: number): void;
+ each: Each<TestFn>;
+}
+export interface It extends ItBase {
+ only: ItBase;
+ skip: ItBase;
+ todo: (testName: TestName) => void;
+}
+export interface ItConcurrentBase {
+ (testName: TestName, testFn: ConcurrentTestFn, timeout?: number): void;
+ each: Each<ConcurrentTestFn>;
+}
+export interface ItConcurrentExtended extends ItConcurrentBase {
+ only: ItConcurrentBase;
+ skip: ItConcurrentBase;
+}
+export interface ItConcurrent extends It {
+ concurrent: ItConcurrentExtended;
+}
+export interface DescribeBase {
+ (blockName: BlockName, blockFn: BlockFn): void;
+ each: Each<BlockFn>;
+}
+export interface Describe extends DescribeBase {
+ only: DescribeBase;
+ skip: DescribeBase;
+}
+export interface TestFrameworkGlobals {
+ it: ItConcurrent;
+ test: ItConcurrent;
+ fit: ItBase & {
+ concurrent?: ItConcurrentBase;
+ };
+ xit: ItBase;
+ xtest: ItBase;
+ describe: Describe;
+ xdescribe: DescribeBase;
+ fdescribe: DescribeBase;
+ beforeAll: HookBase;
+ beforeEach: HookBase;
+ afterEach: HookBase;
+ afterAll: HookBase;
+}
+export interface GlobalAdditions extends TestFrameworkGlobals {
+ __coverage__: CoverageMapData;
+ jasmine: Jasmine;
+ fail: () => void;
+ pending: () => void;
+ spyOn: () => void;
+ spyOnProperty: () => void;
+}
+export interface Global extends GlobalAdditions, Omit<typeof globalThis, keyof GlobalAdditions> {
+ [extras: string]: unknown;
+}
+export {};
diff --git a/node_modules/@jest/types/build/Global.js b/node_modules/@jest/types/build/Global.js
new file mode 100644
index 0000000..ad9a93a
--- /dev/null
+++ b/node_modules/@jest/types/build/Global.js
@@ -0,0 +1 @@
+'use strict';
diff --git a/node_modules/@jest/types/build/TestResult.d.ts b/node_modules/@jest/types/build/TestResult.d.ts
new file mode 100644
index 0000000..a05dca9
--- /dev/null
+++ b/node_modules/@jest/types/build/TestResult.d.ts
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+export declare type Milliseconds = number;
+declare type Status = 'passed' | 'failed' | 'skipped' | 'pending' | 'todo' | 'disabled';
+declare type Callsite = {
+ column: number;
+ line: number;
+};
+export declare type AssertionResult = {
+ ancestorTitles: Array<string>;
+ duration?: Milliseconds | null;
+ failureDetails: Array<unknown>;
+ failureMessages: Array<string>;
+ fullName: string;
+ invocations?: number;
+ location?: Callsite | null;
+ numPassingAsserts: number;
+ status: Status;
+ title: string;
+};
+export declare type SerializableError = {
+ code?: unknown;
+ message: string;
+ stack: string | null | undefined;
+ type?: string;
+};
+export {};
diff --git a/node_modules/@jest/types/build/TestResult.js b/node_modules/@jest/types/build/TestResult.js
new file mode 100644
index 0000000..ad9a93a
--- /dev/null
+++ b/node_modules/@jest/types/build/TestResult.js
@@ -0,0 +1 @@
+'use strict';
diff --git a/node_modules/@jest/types/build/Transform.d.ts b/node_modules/@jest/types/build/Transform.d.ts
new file mode 100644
index 0000000..69abd92
--- /dev/null
+++ b/node_modules/@jest/types/build/Transform.d.ts
@@ -0,0 +1,11 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+export declare type TransformResult = {
+ code: string;
+ originalCode: string;
+ sourceMapPath: string | null;
+};
diff --git a/node_modules/@jest/types/build/Transform.js b/node_modules/@jest/types/build/Transform.js
new file mode 100644
index 0000000..ad9a93a
--- /dev/null
+++ b/node_modules/@jest/types/build/Transform.js
@@ -0,0 +1 @@
+'use strict';
diff --git a/node_modules/@jest/types/build/index.d.ts b/node_modules/@jest/types/build/index.d.ts
new file mode 100644
index 0000000..be82158
--- /dev/null
+++ b/node_modules/@jest/types/build/index.d.ts
@@ -0,0 +1,12 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+import type * as Circus from './Circus';
+import type * as Config from './Config';
+import type * as Global from './Global';
+import type * as TestResult from './TestResult';
+import type * as TransformTypes from './Transform';
+export type { Circus, Config, Global, TestResult, TransformTypes };
diff --git a/node_modules/@jest/types/build/index.js b/node_modules/@jest/types/build/index.js
new file mode 100644
index 0000000..ad9a93a
--- /dev/null
+++ b/node_modules/@jest/types/build/index.js
@@ -0,0 +1 @@
+'use strict';
diff --git a/node_modules/@jest/types/package.json b/node_modules/@jest/types/package.json
new file mode 100644
index 0000000..9f7100a
--- /dev/null
+++ b/node_modules/@jest/types/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "@jest/types",
+ "version": "27.5.1",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/facebook/jest.git",
+ "directory": "packages/jest-types"
+ },
+ "engines": {
+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
+ },
+ "license": "MIT",
+ "main": "./build/index.js",
+ "types": "./build/index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./build/index.d.ts",
+ "default": "./build/index.js"
+ },
+ "./package.json": "./package.json"
+ },
+ "dependencies": {
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "@types/istanbul-reports": "^3.0.0",
+ "@types/node": "*",
+ "@types/yargs": "^16.0.0",
+ "chalk": "^4.0.0"
+ },
+ "devDependencies": {
+ "@tsd/typescript": "~4.1.5",
+ "tsd-lite": "^0.5.1"
+ },
+ "publishConfig": {
+ "access": "public"
+ },
+ "gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850"
+}