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:
parent
e27d52b276
commit
37ca4cb7d6
@ -35,9 +35,6 @@ overrides:
|
|||||||
rules:
|
rules:
|
||||||
import/no-unresolved: [0]
|
import/no-unresolved: [0]
|
||||||
import/no-extraneous-dependencies: [0]
|
import/no-extraneous-dependencies: [0]
|
||||||
- files: ["*.test.js"]
|
|
||||||
env:
|
|
||||||
jest: true
|
|
||||||
- files: ["*.config.js"]
|
- files: ["*.config.js"]
|
||||||
rules:
|
rules:
|
||||||
import/no-unused-modules: [0]
|
import/no-unused-modules: [0]
|
||||||
|
@ -24,7 +24,6 @@ export default defineConfig({
|
|||||||
open: false,
|
open: false,
|
||||||
allowOnly: true,
|
allowOnly: true,
|
||||||
passWithNoTests: true,
|
passWithNoTests: true,
|
||||||
globals: true,
|
|
||||||
watch: false,
|
watch: false,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import {describe, expect, test} from 'vitest';
|
||||||
import {strSubMatch, calcMatchedWeight, filterRepoFilesWeighted} from './repo-findfile.js';
|
import {strSubMatch, calcMatchedWeight, filterRepoFilesWeighted} from './repo-findfile.js';
|
||||||
|
|
||||||
describe('Repo Find Files', () => {
|
describe('Repo Find Files', () => {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import {expect, test} from 'vitest';
|
||||||
import {svg} from './svg.js';
|
import {svg} from './svg.js';
|
||||||
|
|
||||||
test('svg', () => {
|
test('svg', () => {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import {expect, test} from 'vitest';
|
||||||
import {
|
import {
|
||||||
basename, extname, isObject, uniq, stripTags, joinPaths, parseIssueHref,
|
basename, extname, isObject, uniq, stripTags, joinPaths, parseIssueHref,
|
||||||
prettyNumber, parseUrl,
|
prettyNumber, parseUrl,
|
||||||
|
Loading…
Reference in New Issue
Block a user