jest-haste-map
- Version 29.7.0
- Published
- 121 kB
- 12 dependencies
- MIT license
Install
npm i jest-haste-map
yarn add jest-haste-map
pnpm add jest-haste-map
Overview
Overview not available.
Index
Variables
Classes
Interfaces
Type Aliases
Variables
variable JestHasteMap
const JestHasteMap: IJestHasteMap;
variable ModuleMap
const ModuleMap: { create: (rootPath: string) => IModuleMap };
Classes
class DuplicateError
class DuplicateError extends Error {}
constructor
constructor(mockPath1: string, mockPath2: string);
property mockPath1
mockPath1: string;
property mockPath2
mockPath2: string;
Interfaces
interface IHasteFS
interface IHasteFS {}
method exists
exists: (path: string) => boolean;
method getAbsoluteFileIterator
getAbsoluteFileIterator: () => Iterable<string>;
method getAllFiles
getAllFiles: () => Array<string>;
method getDependencies
getDependencies: (file: string) => Array<string> | null;
method getSize
getSize: (path: string) => number | null;
method matchFiles
matchFiles: (pattern: RegExp | string) => Array<string>;
method matchFilesWithGlob
matchFilesWithGlob: ( globs: ReadonlyArray<string>, root: string | null) => Set<string>;
interface IHasteMap
interface IHasteMap {}
interface IModuleMap
interface IModuleMap<S = SerializableModuleMap> {}
method getMockModule
getMockModule: (name: string) => string | undefined;
method getModule
getModule: ( name: string, platform?: string | null, supportsNativePlatform?: boolean | null, type?: HTypeValue | null) => string | null;
method getPackage
getPackage: ( name: string, platform: string | null | undefined, _supportsNativePlatform: boolean | null) => string | null;
method getRawModuleMap
getRawModuleMap: () => RawModuleMap;
method toJSON
toJSON: () => S;
Type Aliases
type SerializableModuleMap
type SerializableModuleMap = { duplicates: ReadonlyArray<[string, [string, [string, [string, number]]]]>; map: ReadonlyArray<[string, ValueType<ModuleMapData>]>; mocks: ReadonlyArray<[string, ValueType<MockData>]>; rootDir: string;};
Package Files (1)
Dependencies (12)
Dev Dependencies (3)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto 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-haste-map
.
- Markdown[](https://www.jsdocs.io/package/jest-haste-map)
- HTML<a href="https://www.jsdocs.io/package/jest-haste-map"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1376 ms. - Missing or incorrect documentation? Open an issue for this package.