chore(llms): gate live model tests behind test:live (#610)

* chore(llms): gate live model tests behind test:live

Keep *.live.test.ts out of npm test so local CI stays fast; run them
explicitly via npm run test:live when checking provider compatibility.

* chore: skill gh permission
This commit is contained in:
Simon
2026-07-10 00:48:52 -07:00
committed by GitHub
parent 4c76a5f1d2
commit d5c994708c
6 changed files with 35 additions and 9 deletions
+1
View File
@@ -132,6 +132,7 @@ const pageInfo = await this.pageController.getPageInfo()
- **Location**: co-located, `src/foo.test.ts` next to `src/foo.ts`
- **Coverage today**: `packages/llms` only — other packages will follow incrementally
- **Adding tests to a new package**: create `vitest.config.ts` in the package and add a `"test": "vitest run"` script. Root `npm test` and `node scripts/ci.js` pick it up through npm workspaces.
- **Live tests** (hit real external APIs, slow/costly): name them `*.live.test.ts`, exclude them from the package's `test` script, and expose them via a `test:live` script. Root `npm run test:live` runs all of them; they never run in `npm test` or CI. Template: `packages/llms`.
- **Template**: See @page-agent/llms
```bash