import { map } from "rxjs"; jest.mock('@ngxpert/hot-toast', () => ({ HotToastService: { observe: jest.fn().mockImplementation(() => map(x => x)), info: jest.fn(), error: jest.fn(), success: jest.fn(), }, })); export class MockHotToastService { observe = jest.fn().mockImplementation(() => map(x => x)); info = jest.fn(); error = jest.fn(); success = jest.fn(); };