From 5d309ff52cd399a6b71968a6b9a70c8ac0b98981 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sat, 5 Mar 2022 19:02:27 +0200 Subject: Added node_modules for the updating to work properly. --- node_modules/jest-resolve/build/resolver.d.ts | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 node_modules/jest-resolve/build/resolver.d.ts (limited to 'node_modules/jest-resolve/build/resolver.d.ts') diff --git a/node_modules/jest-resolve/build/resolver.d.ts b/node_modules/jest-resolve/build/resolver.d.ts new file mode 100644 index 0000000..cfe184e --- /dev/null +++ b/node_modules/jest-resolve/build/resolver.d.ts @@ -0,0 +1,58 @@ +/** + * 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 { Config } from '@jest/types'; +import type { IModuleMap } from 'jest-haste-map'; +import ModuleNotFoundError from './ModuleNotFoundError'; +import shouldLoadAsEsm from './shouldLoadAsEsm'; +import type { ResolverConfig } from './types'; +declare type FindNodeModuleConfig = { + basedir: Config.Path; + browser?: boolean; + conditions?: Array; + extensions?: Array; + moduleDirectory?: Array; + paths?: Array; + resolver?: Config.Path | null; + rootDir?: Config.Path; + throwIfNotFound?: boolean; +}; +export declare type ResolveModuleConfig = { + conditions?: Array; + skipNodeResolution?: boolean; + paths?: Array; +}; +export default class Resolver { + private readonly _options; + private readonly _moduleMap; + private readonly _moduleIDCache; + private readonly _moduleNameCache; + private readonly _modulePathCache; + private readonly _supportsNativePlatform; + constructor(moduleMap: IModuleMap, options: ResolverConfig); + static ModuleNotFoundError: typeof ModuleNotFoundError; + static tryCastModuleNotFoundError(error: unknown): ModuleNotFoundError | null; + static clearDefaultResolverCache(): void; + static findNodeModule(path: Config.Path, options: FindNodeModuleConfig): Config.Path | null; + static unstable_shouldLoadAsEsm: typeof shouldLoadAsEsm; + resolveModuleFromDirIfExists(dirname: Config.Path, moduleName: string, options?: ResolveModuleConfig): Config.Path | null; + resolveModule(from: Config.Path, moduleName: string, options?: ResolveModuleConfig): Config.Path; + private _isAliasModule; + isCoreModule(moduleName: string): boolean; + getModule(name: string): Config.Path | null; + getModulePath(from: Config.Path, moduleName: string): Config.Path; + getPackage(name: string): Config.Path | null; + getMockModule(from: Config.Path, name: string): Config.Path | null; + getModulePaths(from: Config.Path): Array; + getModuleID(virtualMocks: Map, from: Config.Path, moduleName?: string, options?: ResolveModuleConfig): string; + private _getModuleType; + private _getAbsolutePath; + private _getMockPath; + private _getVirtualMockPath; + private _isModuleResolved; + resolveStubModuleName(from: Config.Path, moduleName: string): Config.Path | null; +} +export {}; -- cgit v1.2.3