mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
33 lines
792 B
JavaScript
33 lines
792 B
JavaScript
import swc from 'unplugin-swc';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
root: './',
|
|
globals: true,
|
|
include: ['src/**/*.spec.ts'],
|
|
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',
|
|
],
|
|
thresholds: {
|
|
lines: 80,
|
|
statements: 80,
|
|
branches: 85,
|
|
functions: 80,
|
|
},
|
|
},
|
|
server: {
|
|
deps: {
|
|
fallbackCJS: true,
|
|
},
|
|
},
|
|
},
|
|
plugins: [swc.vite(), tsconfigPaths()],
|
|
});
|