mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			571 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			571 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import { defineConfig } from 'vite';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export default defineConfig(() => ({
							 | 
						||
| 
								 | 
							
								  root: __dirname,
							 | 
						||
| 
								 | 
							
								  cacheDir: '../../node_modules/.vite/packages/commons',
							 | 
						||
| 
								 | 
							
								  plugins: [],
							 | 
						||
| 
								 | 
							
								  // Uncomment this if you are using workers.
							 | 
						||
| 
								 | 
							
								  // worker: {
							 | 
						||
| 
								 | 
							
								  //  plugins: [ nxViteTsPaths() ],
							 | 
						||
| 
								 | 
							
								  // },
							 | 
						||
| 
								 | 
							
								  test: {
							 | 
						||
| 
								 | 
							
								    'watch': false,
							 | 
						||
| 
								 | 
							
								    'globals': true,
							 | 
						||
| 
								 | 
							
								    'environment': "node",
							 | 
						||
| 
								 | 
							
								    'include': ["src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
							 | 
						||
| 
								 | 
							
								    'reporters': ["default"],
							 | 
						||
| 
								 | 
							
								    'coverage': {
							 | 
						||
| 
								 | 
							
								    'reportsDirectory': './test-output/vitest/coverage',
							 | 
						||
| 
								 | 
							
								    'provider': 'v8' as const,
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								}));
							 |