Skip to content

Commit

Permalink
chore: add jest jsdom matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
isqua committed Oct 23, 2023
1 parent 15d8336 commit 13758c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@testing-library/jest-dom'
import { cleanup } from '@testing-library/react'
import { afterEach } from 'vitest'

Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default defineConfig({
],
// https://vitest.dev/config/
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
css: {
Expand Down

0 comments on commit 13758c9

Please sign in to comment.