Skip to content

Commit 97312e7

Browse files
committed
chore: use vitest globals instead of imports in tests
1 parent ca238e0 commit 97312e7

24 files changed

+1
-24
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default typegen([
7777
globals: {
7878
...globals.es6,
7979
...globals.node,
80-
...globals.mocha
80+
...globals.vitest
8181
}
8282
},
8383
linterOptions: {

tests/integrations/eslint-plugin-import.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { beforeAll, describe, it } from "vitest";
21
/**
32
* @author Toru Nagashima <https://github.com/mysticatea>
43
* @copyright 2017 Toru Nagashima. All rights reserved.

tests/integrations/flat-config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { beforeAll, describe, it } from "vitest";
21
'use strict'
32

43
const { strict: assert } = require('assert')

tests/lib/autofix.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "vitest";
21
/**
32
* @author Yosuke Ota <https://github.com/ota-meshi>
43
* See LICENSE file in root directory for full license.

tests/lib/configs/eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "vitest";
21
'use strict'
32

43
const { ESLint } = require('../../eslint-compat')

tests/lib/configs/flat.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "vitest";
21
/**
32
* @fileoverview flat configs test
43
* @author 唯然<weiran.zsd@outlook.com>

tests/lib/meta.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "vitest";
21
'use strict'
32

43
const assert = require('assert')

tests/lib/rules-without-vue-eslint-parser.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "vitest";
21
/**
32
* @author Toru Nagashima <https://github.com/mysticatea>
43
* See LICENSE file in root directory for full license.

tests/lib/rules-without-vue-sfc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "vitest";
21
/**
32
* @author Yosuke Ota <https://github.com/ota-meshi>
43
* See LICENSE file in root directory for full license.

tests/lib/rules/block-order.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { describe, it } from "vitest";
21
/**
32
* @author Yosuke Ota
43
*/

0 commit comments

Comments
 (0)