mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
13 lines
361 B
TypeScript
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()
|
|
})
|