mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(web): clean up React tests globally (#993)
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import '@testing-library/jest-dom/vitest'
|
||||
import { cleanup } from '@testing-library/react'
|
||||
import { afterEach } from 'vitest'
|
||||
|
||||
afterEach(() => {
|
||||
cleanup()
|
||||
})
|
||||
|
||||
function installMemoryLocalStorage(): void {
|
||||
const store = new Map<string, string>()
|
||||
|
||||
Reference in New Issue
Block a user