2024-04-16 14:44:45 +00:00
|
|
|
import swc from 'unplugin-swc';
|
2024-07-26 21:26:38 +00:00
|
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
2024-04-16 14:44:45 +00:00
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
test: {
|
|
|
|
root: './',
|
|
|
|
globals: true,
|
2024-08-20 11:50:09 +00:00
|
|
|
coverage: {
|
|
|
|
provider: 'v8',
|
|
|
|
include: ['src/cores/**', 'src/interfaces/**', 'src/services/**', 'src/utils/**'],
|
2024-10-08 21:08:49 +00:00
|
|
|
exclude: [
|
|
|
|
'src/services/*.spec.ts',
|
|
|
|
'src/services/api.service.ts',
|
|
|
|
'src/services/microservices.service.ts',
|
|
|
|
'src/services/index.ts',
|
|
|
|
],
|
2024-08-20 11:50:09 +00:00
|
|
|
thresholds: {
|
|
|
|
lines: 80,
|
|
|
|
statements: 80,
|
|
|
|
branches: 85,
|
2024-09-25 17:26:19 +00:00
|
|
|
functions: 80,
|
2024-08-20 11:50:09 +00:00
|
|
|
},
|
|
|
|
},
|
2024-04-16 14:44:45 +00:00
|
|
|
server: {
|
|
|
|
deps: {
|
|
|
|
fallbackCJS: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-07-26 21:26:38 +00:00
|
|
|
plugins: [swc.vite(), tsconfigPaths()],
|
2024-04-16 14:44:45 +00:00
|
|
|
});
|