diff --git a/src/test/setup.ts b/src/test/setup.ts index 904c7b9..ca92cc3 100644 --- a/src/test/setup.ts +++ b/src/test/setup.ts @@ -1,3 +1,4 @@ +import '@testing-library/jest-dom' import { cleanup } from '@testing-library/react' import { afterEach } from 'vitest' diff --git a/vite.config.ts b/vite.config.ts index 0ef2d17..d418e43 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,7 @@ export default defineConfig({ ], // https://vitest.dev/config/ test: { + globals: true, environment: 'jsdom', setupFiles: './src/test/setup.ts', css: {