mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	This should solve the main problem of dynamic assets getting stale after a version upgrade. Everything not affected will use query-string based cache busting, which includes files loaded via HTML or worker scripts.
		
			
				
	
	
		
			13 lines
		
	
	
		
			292 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			292 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
export default {
 | 
						|
  rootDir: 'web_src',
 | 
						|
  setupFilesAfterEnv: ['jest-extended/all'],
 | 
						|
  testEnvironment: 'jest-environment-jsdom',
 | 
						|
  testMatch: ['<rootDir>/**/*.test.js'],
 | 
						|
  testTimeout: 20000,
 | 
						|
  transform: {
 | 
						|
    '\\.svg$': '<rootDir>/js/testUtils/jestRawLoader.js',
 | 
						|
  },
 | 
						|
  verbose: false,
 | 
						|
};
 | 
						|
 |