1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 06:31:58 +00:00
immich/server/vitest.config.mjs

34 lines
792 B
JavaScript
Raw Normal View History

import swc from 'unplugin-swc';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
root: './',
globals: true,
2024-10-09 14:00:40 +00:00
include: ['src/**/*.spec.ts'],
2024-08-20 11:50:09 +00:00
coverage: {
provider: 'v8',
include: ['src/cores/**', 'src/interfaces/**', 'src/services/**', 'src/utils/**'],
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: 85,
statements: 85,
branches: 90,
functions: 85,
2024-08-20 11:50:09 +00:00
},
},
server: {
deps: {
fallbackCJS: true,
},
},
},
plugins: [swc.vite(), tsconfigPaths()],
});