Files
lifeRestart/packages/hooks/setup-tests.ts
T
2026-08-11 02:17:31 +08:00

13 lines
361 B
TypeScript

import { GlobalRegistrator } from '@happy-dom/global-registrator'
GlobalRegistrator.register()
import { afterEach, expect } from 'bun:test'
import { cleanup } from '@testing-library/react'
import * as matchers from '@testing-library/jest-dom/matchers'
expect.extend(matchers)
// Optional: cleans up `render` after each test
afterEach(() => {
cleanup()
})