feat: switch from jest to vitest

This commit is contained in:
Igor Klepacki 2025-08-04 15:18:06 +02:00
parent 8ae7083326
commit 22e3c1dc11
9 changed files with 1043 additions and 407 deletions

14
vitest.config.ts Normal file
View file

@ -0,0 +1,14 @@
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths(), react()],
test: {
environment: 'jsdom',
setupFiles: './vitest.setup.ts',
globals: true,
testMatch: ['**/*.test.{ts,tsx}', '**/*.spec.{ts,tsx}'],
exclude: ['**/node_modules/**', '**/dist/**', '**/e2e/**', '.next/**'],
},
})