Skip to content

Commit 8a84903

Browse files
authored
Merge pull request #1727 from progfay/use-vitest
Migrate from Jest to Vitest
2 parents 8208655 + e27b040 commit 8a84903

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3152
-6412
lines changed

.cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1",
2+
"version": "0.2",
33
"language": "en",
44
"words": [
55
"decos",

eslint.config.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import globals from "globals";
21
import eslint from "@eslint/js";
32
import tsEslint from "typescript-eslint";
43
import eslintConfigPrettier from "eslint-config-prettier";
5-
import eslintPluginJest from "eslint-plugin-jest";
4+
import eslintPluginVitest from "eslint-plugin-vitest";
65

76
/** @type {import("eslint").Linter.FlatConfig[]} */
87
export default tsEslint.config(
@@ -14,9 +13,6 @@ export default tsEslint.config(
1413
eslintConfigPrettier,
1514
],
1615
languageOptions: {
17-
globals: {
18-
...globals.jest,
19-
},
2016
parser: tsEslint.parser,
2117
parserOptions: {
2218
sourceType: "module",
@@ -28,7 +24,7 @@ export default tsEslint.config(
2824
},
2925
},
3026
{
31-
files: ["**/tests/**/*.test.ts"],
32-
...eslintPluginJest.configs["flat/recommended"],
27+
files: ["tests/**"],
28+
...eslintPluginVitest.configs.recommended,
3329
},
3430
);

jest.config.mjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)