Remove vitest globals (#21505)

Explicitly import them instead which is cleaner and enables better
editor integration.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
2022-10-19 08:50:19 +02:00
committed by GitHub
parent e27d52b276
commit 37ca4cb7d6
5 changed files with 3 additions and 4 deletions

View File

@ -1,3 +1,4 @@
import {describe, expect, test} from 'vitest';
import {strSubMatch, calcMatchedWeight, filterRepoFilesWeighted} from './repo-findfile.js';
describe('Repo Find Files', () => {

View File

@ -1,3 +1,4 @@
import {expect, test} from 'vitest';
import {svg} from './svg.js';
test('svg', () => {

View File

@ -1,3 +1,4 @@
import {expect, test} from 'vitest';
import {
basename, extname, isObject, uniq, stripTags, joinPaths, parseIssueHref,
prettyNumber, parseUrl,