mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
18 lines
599 B
TypeScript
18 lines
599 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tsconfigPaths()],
|
|
test: {
|
|
globals: true, // This is needed by @testing-library to be cleaned up after each test.
|
|
include: ['src/**/*.test.{js,jsx,ts,tsx}'],
|
|
coverage: {
|
|
include: ['src/**/*'],
|
|
exclude: ['src/**/*.stories.{js,jsx,ts,tsx}', '**/*.d.ts'],
|
|
},
|
|
environment: 'node', // jsdom
|
|
setupFiles: './vitest-setup.ts',
|
|
globalSetup: './vitest-global-setup.ts',
|
|
},
|
|
});
|