mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-26 17:08:25 +00:00 
			
		
		
		
	Even if we are not bundling with `vite` yet, we can use `vitest` in place of Jest which brings a few benefits like not requiring to use `NODE_OPTIONS` to run and having sane module resolution. It's possible to also use `jest-extended` with vitest, but I opted to not do so for now because it brings heavyweight dependencies and it was trivial to just rewrite the affected matchers to be compatible. This PR also removes 153 JS dependencies, which is certainly nice. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
		
			
				
	
	
		
			6 lines
		
	
	
		
			88 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			88 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| window.config = {
 | |
|   csrfToken: 'test-csrf-token-123456',
 | |
|   pageData: {},
 | |
|   i18n: {},
 | |
| };
 |