Преглед на файлове

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>
tags/v1.18.0-rc0
silverwind преди 1 година
родител
ревизия
37ca4cb7d6
No account linked to committer's email address
променени са 5 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 0
    3
      .eslintrc.yaml
  2. 0
    1
      vitest.config.js
  3. 1
    0
      web_src/js/features/repo-findfile.test.js
  4. 1
    0
      web_src/js/svg.test.js
  5. 1
    0
      web_src/js/utils.test.js

+ 0
- 3
.eslintrc.yaml Целия файл

@@ -35,9 +35,6 @@ overrides:
rules:
import/no-unresolved: [0]
import/no-extraneous-dependencies: [0]
- files: ["*.test.js"]
env:
jest: true
- files: ["*.config.js"]
rules:
import/no-unused-modules: [0]

+ 0
- 1
vitest.config.js Целия файл

@@ -24,7 +24,6 @@ export default defineConfig({
open: false,
allowOnly: true,
passWithNoTests: true,
globals: true,
watch: false,
},
plugins: [

+ 1
- 0
web_src/js/features/repo-findfile.test.js Целия файл

@@ -1,3 +1,4 @@
import {describe, expect, test} from 'vitest';
import {strSubMatch, calcMatchedWeight, filterRepoFilesWeighted} from './repo-findfile.js';

describe('Repo Find Files', () => {

+ 1
- 0
web_src/js/svg.test.js Целия файл

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

test('svg', () => {

+ 1
- 0
web_src/js/utils.test.js Целия файл

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

Loading…
Отказ
Запис