mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			766 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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()],
 | |
| });
 |