jam/vitest.setup.ts

9 lines
214 B
TypeScript

import * as matchers from '@testing-library/jest-dom/matchers'
import { cleanup } from '@testing-library/react'
import { expect, afterEach } from 'vitest'
expect.extend(matchers)
afterEach(() => {
cleanup()
})