mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 16:48:03 +02: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 parent
e4cf9d22a7
commit
d74fba8175
15 files changed
+13
-11
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import {test, expect} from 'vitest';
|
||||
import {parseIssueListQuickGotoLink} from './common-issue-list.js';
|
||||
|
||||
test('parseIssueListQuickGotoLink', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import {test, expect} from 'vitest';
|
||||
import {singleAnchorRegex, rangeAnchorRegex} from './repo-code.js';
|
||||
|
||||
test('singleAnchorRegex', () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import {describe, expect, test} from 'vitest';
|
||||
import {strSubMatch, calcMatchedWeight, filterRepoFilesWeighted} from './repo-findfile.js';
|
||||
|
||||
describe('Repo Find Files', () => {
|
||||
|
||||
Reference in new issue
Block a user