feat: integrate Vitest for testing and update workflows

- Added Vitest as a testing framework in package.json and configured test scripts.
- Created new test files for CLI and client functionalities, ensuring comprehensive coverage.
- Updated GitHub Actions workflows to include testing steps and streamlined release process.
- Removed the deprecated onRelease workflow to consolidate CI/CD processes.
This commit is contained in:
Mauricio Siu
2026-04-15 21:00:48 -06:00
parent 0869e2d69a
commit c073a037b1
8 changed files with 978 additions and 45 deletions

View File

@@ -25,7 +25,8 @@
"@biomejs/biome": "2.1.1",
"@types/node": "^18",
"tsx": "^4.21.0",
"typescript": "^5"
"typescript": "^5",
"vitest": "^4.1.4"
},
"engines": {
"node": ">=18.0.0"
@@ -48,6 +49,7 @@
"prebuild": "pnpm run generate",
"dev": "tsx src/index.ts",
"lint": "biome check --write .",
"test": "vitest run",
"publish": "npm publish"
},
"types": "dist/index.d.ts"