mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
36 lines
772 B
TypeScript
36 lines
772 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
publicDir: 'public',
|
|
build: {
|
|
outDir: 'build',
|
|
},
|
|
server: {
|
|
open: true,
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/setupTests.ts'],
|
|
include: ['src/**/*.spec.{ts,tsx}'],
|
|
isolate: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html'],
|
|
reportsDirectory: './coverage/testing',
|
|
include: ['src/**/*.{ts,tsx}'],
|
|
exclude: [
|
|
'src/generated/**',
|
|
'src/**/*.spec.{ts,tsx}',
|
|
'src/**/__mocks__/**',
|
|
'src/setupTests.ts',
|
|
'src/polyfills.ts',
|
|
],
|
|
},
|
|
},
|
|
});
|