CI / ci (push) Successful in 1m40s
Co-authored-by: dev_agent <dev_agent@cubecraftlabs.com>
11 lines
379 B
TypeScript
11 lines
379 B
TypeScript
import '@testing-library/jest-dom/vitest'
|
|
import { cleanup } from '@testing-library/react'
|
|
import { afterEach } from 'vitest'
|
|
|
|
afterEach(() => {
|
|
cleanup()
|
|
// The verified-session marker and other device state must not leak between
|
|
// tests. Tests in the node environment (src/pwa.test.ts) have no storage.
|
|
if (typeof localStorage !== 'undefined') localStorage.clear()
|
|
})
|