mirror of
https://gitee.com/gitea/gitea
synced 2025-11-08 02:20:24 +08:00
Backport #27102 by @silverwind Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing the noise in test files. Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import {test, expect} from 'vitest';
|
||||
import {useLightTextOnBackground} from './color.js';
|
||||
|
||||
test('useLightTextOnBackground', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import {test, expect} from 'vitest';
|
||||
import {matchEmoji, matchMention} from './match.js';
|
||||
|
||||
test('matchEmoji', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import {expect, test} from 'vitest';
|
||||
import {pathEscapeSegments} from './url.js';
|
||||
|
||||
test('pathEscapeSegments', () => {
|
||||
|
||||
Reference in New Issue
Block a user