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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user