Constructors
constructor
- new Mocker(parentFileName, fileName, mocks?): Mocker
Parameters
- parentFileName: string
- fileName: string
- mocks: {
[k: string]: any;
} = {}
Properties
Methods
getMock
- getMock(id): any
Returns any
hasMock
- hasMock(id): boolean
Returns boolean
setSeen
- setSeen(filePath, mod): void
Returns void
Class that handles swapping out real modules for mocks as needed