Testing¶
The tests use Node 24's own test runner. Run them all with:
They need no network, no Tavily account and no sign-in: the provider reads are driven by a fake OpenCode runtime, and the conformance fixture is synthetic.
What proves what¶
| Test | Proves |
|---|---|
test/manifest.test.ts | the package, the manifest shape, the method classes and the fixed-context line |
test/accounts.test.ts | one server per alias, the names, the URL, oauth and timeout.execution |
test/provider.test.ts | each MCP state's signal, the redaction, and the single live read |
test/options.test.ts | the plugin options and their refusals |
test/probe.test.ts, test/status.test.ts | the real handlers |
test/websearch.test.ts | the web search default |
test/unit/skills.test.ts | the YAML loader and skill registration |
test/unit/repository.test.ts | the README's sections and links, the contract's five lines in the README and the docs page, the docs site, the docs job, and no legacy word |
test/unit/dependencies.test.ts | the lockfile resolves no cross-spawn below 7.1.0, and the manifest holds it with an override |
test/bundle.test.ts | the committed bundle carries the .skill.transform literal |
test/host/skills.test.ts, test/host/surfaces.test.ts | the skills, both server shapes and status/probe on the real 2.4.1 host |
test/fixture.test.ts | the conformance fixture replays through the handlers |
test/pack/pack.test.mjs | the packed tarball's files, and that its ./server entry imports |
The fixture¶
fixtures/conformance.json is the plugin's evidence to the conformance kit, and test/fixture.test.ts replays it through the handlers so it cannot drift. It is recorded from the plugin's synthetic two-alias runtime: no live Tavily account stands behind it, so nothing in it is a live capture, and its $comment says so. Rebuild it with npm run fixtures, and check that it needs no redaction with npx plugin-kit record --check. A real capture needs a signed-in Tavily account; nobody has recorded one.
The gate¶
npm run check is the whole gate: lint, typecheck, the committed bundle, the tests, the pack test, plugin-kit check and plugin-kit docs --check. CI runs it, and the docs job builds the site beside it.
Run one full check at a time on a shared machine:
The docs site¶
python3 -m venv .cache/docs-venv
.cache/docs-venv/bin/pip install -r docs/requirements.txt
.cache/docs-venv/bin/mkdocs build --strict
A generated section under <!-- generated:<section> --> markers is edited in package.json, never in the page: run npx plugin-kit docs and commit the result.