mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-28 09:16:47 +08:00
update: hooks, web
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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()
|
||||
})
|
||||
Reference in New Issue
Block a user