Skip to content

Commit

Permalink
Migrate kda-cli from jest to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 11, 2023
1 parent d682880 commit c17bc6f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
6 changes: 0 additions & 6 deletions packages/tools/kda-cli/jest.config.cjs

This file was deleted.

7 changes: 3 additions & 4 deletions packages/tools/kda-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint:fmt": "prettier . --cache --check",
"lint:pkg": "lint-package",
"lint:src": "eslint src --ext .js,.ts,.tsx",
"test": "jest --silent"
"test": "vitest"
},
"dependencies": {
"@inkjs/ui": "^1.0.0",
Expand All @@ -53,16 +53,15 @@
"@microsoft/api-extractor": "^7.37.0",
"@rushstack/eslint-config": "~3.3.0",
"@types/cross-spawn": "~6.0.2",
"@types/jest": "^29.5.3",
"@types/node": "^18.17.14",
"@types/react": "^18.2.15",
"chalk": "^5.2.0",
"eslint": "^8.45.0",
"ink-testing-library": "^3.0.0",
"jest": "^29.7.0",
"prettier": "~3.0.0",
"prettier-plugin-packagejson": "^2.4.5",
"typescript": "5.2.2"
"typescript": "5.2.2",
"vitest": "^0.34.6"
},
"engines": {
"node": ">=16"
Expand Down
8 changes: 8 additions & 0 deletions packages/tools/kda-cli/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
include: ['src/**/*.test.ts'],
globals: true,
},
});
9 changes: 3 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c17bc6f

Please sign in to comment.