first commit

This commit is contained in:
zhujun
2026-05-19 17:08:29 +08:00
commit 93480386d9
270 changed files with 85843 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
include: ['src/**/*.{test,spec}.{js,jsx,ts,tsx}'],
exclude: ['node_modules', 'dist', '.git'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*.{js,jsx,ts,tsx}'],
exclude: ['src/**/*.d.ts', 'src/test/**/*']
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
})