platform-codebase/features/email/frontend-users/test/setup.ts

11 lines
290 B
TypeScript
Executable file

import * as matchers from '@testing-library/jest-dom/matchers'
import { cleanup } from '@testing-library/react'
import { expect, afterEach } from 'vitest'
// Extend Vitest's expect with jest-dom matchers
expect.extend(matchers)
// Cleanup after each test
afterEach(() => {
cleanup()
})