Skip to content

Commit e26471e

Browse files
committed
chore(test): use vitest eslint plugin and fix lint errors
Rename files to go back to the original format without the vitest hint. Remove all jest references and installs.
1 parent 8dc9116 commit e26471e

File tree

73 files changed

+5916
-8998
lines changed

Some content is hidden

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

73 files changed

+5916
-8998
lines changed

eslint.config.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import globals from "globals";
77
import checkFile from "eslint-plugin-check-file";
88
import header from "eslint-plugin-header";
99
import importPlugin from "eslint-plugin-import";
10-
import jestPlugin from "eslint-plugin-jest";
10+
import vitestPlugin from "@vitest/eslint-plugin";
1111
import js from "@eslint/js";
1212
import jsdoc from "eslint-plugin-jsdoc";
1313
import storybook from "eslint-plugin-storybook";
@@ -171,11 +171,15 @@ const estlintConfig = defineConfig([
171171
rules: { "header/header": "off" },
172172
},
173173

174-
// Jest configuration for test files
174+
// Vitest configuration for test files
175175
{
176-
files: ["**/*.{test,spec}.{ts,tsx,js}", "jest.setup.ts"],
177-
plugins: { jest: jestPlugin },
178-
rules: jestPlugin.configs.recommended.rules,
176+
files: [
177+
"**/*.{test,spec}.{ts,tsx}",
178+
"**/*.integration.{ts,tsx}",
179+
"vitest.setup.ts",
180+
],
181+
plugins: { vitest: vitestPlugin },
182+
rules: vitestPlugin.configs.recommended.rules,
179183
},
180184

181185
// Next is not running ESLint on root files by default. The only way to

jest.config.cjs

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

jest.setup.ts

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

0 commit comments

Comments
 (0)