Files
zigbee2mqtt/test/mocks/jszip.ts
T
2024-12-22 20:19:45 +01:00

12 lines
317 B
TypeScript

export const mockJSZipFile = vi.fn();
export const mockJSZipGenerateAsync = vi.fn().mockReturnValue('THISISBASE64');
vi.mock('jszip', () => ({
default: vi.fn().mockImplementation(() => {
return {
file: mockJSZipFile,
generateAsync: mockJSZipGenerateAsync,
};
}),
}));