Skip to content

Commit b7faa31

Browse files
committedMar 16, 2025
build: Replace jest with vitest
1 parent 426b33b commit b7faa31

18 files changed

+5338
-7573
lines changed
 

‎.npmignore

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
.circleci
2-
.github
1+
**/*.test.*
32
.editorconfig
43
.eslintignore
54
.eslintrc.js
5+
.github
6+
.verdaccio-storage
67
assets
7-
babel.config.js
8-
jest.config.js
9-
jsconfig.json
10-
src
11-
test
12-
**/__tests__/*
138
config
9+
node_modules
1410
scripts
11+
src
12+
test
13+
tsconfig.*
1514
verdaccio.yaml

‎eslint.config.mjs

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import jest from 'eslint-plugin-jest';
21
import path from 'node:path';
32
import { fileURLToPath } from 'node:url';
43
import js from '@eslint/js';
@@ -22,10 +21,8 @@ export default [
2221
ignores: ['lib', 'test/webpack/**/dist'],
2322
},
2423
{
25-
plugins: { jest },
2624
languageOptions: {
2725
globals: {
28-
...jest.environments.globals.globals,
2926
AGENT_VERSION: true,
3027
describe: true,
3128
it: true,
@@ -41,7 +38,7 @@ export default [
4138
'import/no-extraneous-dependencies': [
4239
'error',
4340
{
44-
devDependencies: ['**/*.test.js', '*.config.mjs'],
41+
devDependencies: ['**/*.test.js', '*.config.{js,mjs}'],
4542
},
4643
],
4744
},
@@ -52,6 +49,13 @@ export default [
5249
rules: {
5350
'import/extensions': ['error', 'never', { ts: 'never' }],
5451
'@typescript-eslint/no-explicit-any': 'warn',
52+
'import/no-extraneous-dependencies': [
53+
'error',
54+
{
55+
devDependencies: true,
56+
// devDependencies: ['**/*.test.ts', '*.config.ts'],
57+
},
58+
],
5559
},
5660
settings: {
5761
'import/resolver': {

‎jest.config.js

-8
This file was deleted.

‎jsconfig.json

-14
This file was deleted.

0 commit comments

Comments
 (0)