chore: add Vitest scaffolding and sync package.json to v2.2.3

This commit is contained in:
Boovaragan
2026-06-08 17:58:58 +05:30
parent 8fd5c8c64e
commit 59b5eb0bd2
8 changed files with 1645 additions and 25 deletions

View File

@@ -250,8 +250,20 @@ Then create a Pull Request on GitHub.
### Running Tests
The project has two test suites:
- **TypeScript** (Vitest) — lives in `tests-ts/`, covers the MCP protocol/router layer in `src/`.
- **Python** (pytest) — lives in `tests/`, covers the KiCAD interface in `python/`.
```bash
# All tests
# TypeScript tests (Vitest)
npm run test:ts # one-shot run
npm run test:ts:watch # watch mode
# Run both TS and Python suites
npm test
# Python tests only
pytest
# Unit tests only