test: migrate tests from centralized mjs to colocated TypeScript

Move test files from tests/ directory to colocate with source code,
convert from .mjs to .ts using tsx runner, add workspaces and npm
cache to CI workflow.
This commit is contained in:
Jim Liu 宝玉
2026-03-13 16:36:06 -05:00
parent 484b00109f
commit 774ad784d8
15 changed files with 2600 additions and 42 deletions
+4
View File
@@ -16,6 +16,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test