UNPKG

@filanodev/paygate-react

Version:

PayGateGlobal React hooks and components - Support FLOOZ and T-Money

19 lines (16 loc) 445 B
import { expect, afterEach, vi } from 'vitest' import { cleanup } from '@testing-library/react' import * as matchers from '@testing-library/jest-dom/matchers' // Extend Vitest's expect with testing-library matchers expect.extend(matchers) // Clean up after each test afterEach(() => { cleanup() vi.clearAllMocks() }) // Mock console methods to avoid noise during tests global.console = { ...console, error: vi.fn(), warn: vi.fn(), }