1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-05 06:00:24 +02:00
Files
immich/server/test/vitest.config.mjs
2025-07-03 10:59:17 -04:00

31 lines
766 B
JavaScript

import swc from 'unplugin-swc';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
// Set the timezone to UTC to avoid timezone issues during testing
process.env.TZ = 'UTC';
export default defineConfig({
test: {
root: './',
globals: true,
include: ['src/**/*.spec.ts'],
coverage: {
provider: 'v8',
include: ['src/cores/**', 'src/services/**', 'src/utils/**', 'src/sql-tools/**'],
exclude: [
'src/services/*.spec.ts',
'src/services/api.service.ts',
'src/services/microservices.service.ts',
'src/services/index.ts',
],
},
server: {
deps: {
fallbackCJS: true,
},
},
},
plugins: [swc.vite(), tsconfigPaths()],
});