Skip to content

Commit 1701abf

Browse files
committed
refactor(test): change jest to vitest
1 parent ee7051f commit 1701abf

11 files changed

Lines changed: 846 additions & 2152 deletions

.deepsource.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ name = "javascript"
55

66
[analyzers.meta]
77
environment = [
8-
"jest",
98
"nodejs"
109
]

eslint.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import typescriptEslint from '@typescript-eslint/eslint-plugin';
2-
import jest from 'eslint-plugin-jest';
32
import globals from 'globals';
43
import tsParser from '@typescript-eslint/parser';
54
import path from 'node:path';
@@ -20,13 +19,11 @@ export default [{
2019
}, ...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended'), {
2120
plugins: {
2221
'@typescript-eslint': typescriptEslint,
23-
jest,
2422
},
2523

2624
languageOptions: {
2725
globals: {
2826
...globals.node,
29-
...globals.jest,
3027
NodeJS: true,
3128
document: 'readonly',
3229
navigator: 'readonly',

jest.config.ts

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

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"scripts": {
1414
"start": "ts-node tests/app/server",
1515
"dev": "ts-node-dev --watch tests/app tests/app/server",
16-
"test": "jest",
17-
"tc": "jest --coverage",
16+
"test": "vitest run",
17+
"tc": "vitest run --coverage",
1818
"lint": "eslint './**/*.ts'",
1919
"lint:fix": "eslint --fix './**/*.ts'",
2020
"tsc": "tsc --noEmit",
@@ -45,23 +45,20 @@
4545
"devDependencies": {
4646
"@hono/node-server": "^1.14.1",
4747
"@types/http-errors": "^2.0.4",
48-
"@types/jest": "^29.5.14",
4948
"@types/morgan": "^1.9.9",
5049
"@types/node": "^22.14.1",
5150
"@typescript-eslint/eslint-plugin": "^8.30.1",
5251
"@typescript-eslint/parser": "^8.30.1",
5352
"body-parser": "^1.20.3",
5453
"eslint": "^9.24.0",
55-
"eslint-plugin-jest": "^28.11.0",
5654
"globals": "^16.0.0",
5755
"hono": "^4.7.7",
5856
"http-errors": "^2.0.0",
59-
"jest": "^29.7.0",
6057
"sync-dev-server": "^1.0.4",
61-
"ts-jest": "^29.3.2",
6258
"ts-node": "^10.9.2",
6359
"ts-node-dev": "^2.0.0",
64-
"typescript": "^5.7.3"
60+
"typescript": "^5.7.3",
61+
"vitest": "^3.1.1"
6562
},
6663
"packageManager": "pnpm@10.8.1",
6764
"dependencies": {

0 commit comments

Comments
 (0)