mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Use vitest globals (#27102)
Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing the noise in test files.
This commit is contained in:
		| @@ -1,4 +1,3 @@ | ||||
| import {test, expect} from 'vitest'; | ||||
| import {GET, POST, PATCH, PUT, DELETE} from './fetch.js'; | ||||
|  | ||||
| // tests here are only to satisfy the linter for unused functions | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| import {test, expect} from 'vitest'; | ||||
| import {showInfoToast, showErrorToast, showWarningToast} from './toast.js'; | ||||
|  | ||||
| test('showInfoToast', async () => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user