export const createSpyObj = (_baseName, methodNames?): jest.Mocked => { const obj: any = {}; for (let i = 0; i < methodNames.length; i++) { obj[methodNames[i]] = jest.fn(); } return obj; }; export const createSpy = (_baseName?) => { return jest.fn(); };