mirror of
https://github.com/immich-app/immich.git
synced 2026-02-06 19:13:48 -05:00
* Fixed an issue where time tests fail in some timezones * Revert previous fix and add TZ env variable to fix the issue * Revert other changes and align TZ fix between server and web * Revert package lock file --------- Co-authored-by: Dion de Koning <dion@DionK01.local>
31 lines
709 B
JavaScript
31 lines
709 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/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,
|
|
},
|
|
},
|
|
env: {
|
|
TZ: 'UTC',
|
|
},
|
|
},
|
|
plugins: [swc.vite(), tsconfigPaths()],
|
|
});
|