Constructors
constructor
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:18
Parameters
Properties
Private _assertNoDuplicates
_assertNoDuplicates: any
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:35
Private _getModuleMetadata
_getModuleMetadata: any
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:34
Private _raw
_raw: any
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:17
Static DuplicateHasteCandidatesError
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:18
Methods
getMockModule
getMockModule( name: string ) : Config.Path | undefined
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:22
Parameters
Returns Config.Path
|
undefined
getModule
getModule( name: string , platform?: string | null , supportsNativePlatform?: boolean | null , type?: HTypeValue | null ) : Config.Path | null
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:20
Parameters
name: string
Optional platform: string | null
Optional supportsNativePlatform: boolean | null
Optional type: HTypeValue | null
Returns Config.Path
|
null
getPackage
getPackage( name: string , platform: string | null | undefined , _supportsNativePlatform: boolean | null ) : Config.Path | null
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:21
Parameters
name: string
platform: string | null | undefined
_supportsNativePlatform: boolean | null
Returns Config.Path
|
null
getRawModuleMap
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:23
toJSON
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:24
Static create
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:36
Parameters
Static fromJSON
Defined in node_modules/jest-haste-map/build/ModuleMap.d.ts:25
Parameters
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
When looking up a module's data, we walk through each eligible platform for the query. For each platform, we want to check if there are known duplicates for that name+platform pair. The duplication logic normally removes elements from the
map
object, but we want to check upfront to be extra sure. If metadata exists both in theduplicates
object and themap
, this would be a bug.