Skip to content

Commit 7781510

Browse files
feat: add setupTest.ts for test cleanup
1 parent c409524 commit 7781510

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/setupTest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import '@testing-library/jest-dom/vitest'
2+
import { afterEach } from 'vitest'
3+
import { cleanup } from '@testing-library/react'
4+
import '@testing-library/jest-dom/vitest'
5+
6+
afterEach(() => {
7+
cleanup()
8+
})

0 commit comments

Comments
 (0)