test: create vitest setup file for testing library cleanup
This commit is contained in:
6
frontend/tests/setup.ts
Normal file
6
frontend/tests/setup.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { expect, afterEach } from 'vitest'
|
||||||
|
import { cleanup } from '@testing-library/react'
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
cleanup()
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user