mirror of
https://github.com/harivansh-afk/Saas-Teamspace-2.git
synced 2026-04-21 22:01:48 +00:00
initial commit
This commit is contained in:
commit
9963e01acc
158 changed files with 48198 additions and 0 deletions
22
vitest.config.mts
Normal file
22
vitest.config.mts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import react from '@vitejs/plugin-react';
|
||||
import { loadEnv } from 'vite';
|
||||
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'],
|
||||
},
|
||||
environmentMatchGlobs: [
|
||||
['**/*.test.tsx', 'jsdom'],
|
||||
['src/hooks/**/*.test.ts', 'jsdom'],
|
||||
],
|
||||
setupFiles: ['./vitest-setup.ts'],
|
||||
env: loadEnv('', process.cwd(), ''),
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue