Skip to content

Commit c0d1449

Browse files
nikolaikCopilot
andcommitted
chore: Refactor tests to use Vitest instead of Jest
- Updated snapshot files to reflect changes in snapshot naming conventions. - Replaced Jest mocking functions with Vitest equivalents across all test files. - Adjusted test cases to use async/await where necessary for consistency. - Introduced a Vitest configuration file to set global options for testing. Co-authored-by: Copilot <copilot@github.com>
1 parent 114e074 commit c0d1449

12 files changed

Lines changed: 1437 additions & 4407 deletions

babel.config.cjs

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

jest.config.cjs

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

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint-fix": "oxlint --fix .",
1313
"format": "oxfmt .",
1414
"start": "tsx index.ts",
15-
"test": "jest --runInBand --collectCoverage=false"
15+
"test": "vitest --config vitest.config.ts"
1616
},
1717
"dependencies": {
1818
"@octokit/auth-app": "^8.2.0",
@@ -22,13 +22,10 @@
2222
"typescript": "^6.0.2"
2323
},
2424
"devDependencies": {
25-
"@babel/preset-env": "^7.29.2",
26-
"@babel/preset-typescript": "^7.28.5",
27-
"@types/jest": "30.0.0",
28-
"babel-plugin-transform-import-meta": "^2.3.3",
29-
"jest": "30.3.0",
25+
"@vitest/coverage-v8": "^4.1.4",
3026
"oxfmt": "^0.45.0",
3127
"oxlint": "^1.60.0",
32-
"oxlint-tsgolint": "^0.21.1"
28+
"oxlint-tsgolint": "^0.21.1",
29+
"vitest": "^4.1.4"
3330
}
3431
}

0 commit comments

Comments
 (0)