chore: add Vitest + Testing Library test infrastructure

This commit is contained in:
achmad
2026-05-28 22:25:08 +07:00
parent 6b4c8397d8
commit 00e85b5c31
2 changed files with 18 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./vitest.setup.ts'],
},
resolve: {
alias: {
'@': resolve(__dirname, '.'),
},
},
})
+1
View File
@@ -0,0 +1 @@
import '@testing-library/jest-dom'