fix(web): clean up React tests globally (#993)

This commit is contained in:
SSU-WEI HUANG
2026-07-11 10:42:13 +08:00
committed by GitHub
parent 58cfc330f9
commit 018bcb8eaa
+6
View File
@@ -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>()