Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix: root test script calls missing client test script (#86)

Ricardod21b1fde8bfe
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 28d7fa56..f048440c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,11 +21,8 @@ jobs:
- name: Install dependencies
run: npm install
- - name: Run server tests
- run: npm test -w server
+ - name: Run tests
+ run: npm test
- - name: Build server
- run: npm run build -w server
-
- - name: Build client
- run: npm run build -w client
+ - name: Build workspaces
+ run: npm run build
diff --git a/README.md b/README.md
index 583a20c0..ff283e8b 100644
--- a/README.md
+++ b/README.md
@@ -282,7 +282,8 @@ Contributors very welcome! Good first PRs:
```bash
npm install
npm run dev # server on :3001, dashboard on :5173, both with HMR
-npm test # vitest — 75 tests across providers, routes, router, ratelimit
+npm test # server vitest; also runs client tests if the workspace adds them
+npm run build # compile server and dashboard
```
PRs should include a test, keep the existing test suite green, and match the `.editorconfig` / tsconfig defaults already in the repo. Issues and discussions are open.
diff --git a/package.json b/package.json
index 1b5038f4..81ca71b0 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
],
"scripts": {
"dev": "concurrently \"npm run dev -w server\" \"npm run dev -w client\"",
- "test": "npm run test -w server && npm run test -w client",
+ "test": "npm run test -w server && npm run test -w client --if-present",
"build": "npm run build -w server && npm run build -w client",
"build:server": "npm run build -w server"
},