-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Description
This is some great stuff! However we have recently migrated from Karma to Jest and Jest does not expose the createSpyObj method of Jasmine. As such, I've had to "copy" over the mocks you have that I want to use and have them use this version of `createSpyObj'. If you could incorporate it somehow into your code, that would be great!!
export function createSpyObj (baseName: string, methodNames: string[]): { [key: string]: jasmine.Spy } {
const obj: any = {}
for (let i: number = 0; i < methodNames.length; i++) {
obj[methodNames[i]] = jasmine.createSpy(baseName, () => {})
}
return obj
}
Reactions are currently unavailable