Testing¶
npm ci --ignore-scripts installs the development tooling only; the plugin has no runtime dependencies. npm test runs every test with Node 24's own test runner.
npm run check is the whole gate, in the order CI runs it:
| Step | What it proves |
|---|---|
npm run lint | @biomejs/biome finds no lint error |
npm run typecheck | the sources and tests typecheck under strict settings |
npm run bundle | dist/index.js is built from src/index.ts with esbuild; commit the result |
npm test | the options, accounts, permissions, manifest, provider, handlers, skills and fixture tests pass |
npm run pack | the tarball carries the built entry, the manifest, the skills, the icons, README.md and LICENSE, and nothing else |
plugin-kit check | conformance T0 and T1, the doc file set, the forbidden patterns and no bundled kit |
plugin-kit docs --check | every generated doc section matches the manifest |
The test files¶
| File | What it proves |
|---|---|
test/unit/options.test.ts | the options' defaults and the OPTIONS_INVALID refusals |
test/unit/accounts.test.ts | one MCP server per github.com alias, the Enterprise integration and the credential states |
test/unit/permissions.test.ts | api asks at every level where it runs and is off at read-only, while a pass-through MCP read still runs |
test/unit/manifest.test.ts | the package name, the 103 methods, the classes and the sources |
test/unit/provider.test.ts | the REST and GraphQL mapping, the page and cursor, the issues table, probe and the failure codes |
test/unit/handlers.test.ts | every handler, with the changed, status and account nudges |
test/unit/skills.test.ts | readSkills and registerSkills: the shipped set, a folded description, the refusals and the transform |
test/unit/repository-style.test.ts | the README's sections, the docs site, the workflows, every relative link and the standard's legacy words |
test/conformance/fixture.test.ts | the recorded conformance answers, replayed so a changed answer fails the test |
test/host/host.test.ts | the tested range and the clean HOST_UNTESTED refusal |
test/host/skills.test.ts | the real 2.4.1 host registers every skill and its YAML description |
The conformance fixture¶
fixtures/conformance.json is the plugin's evidence to the conformance kit. The fake GitHub under test/support/ answers two invented accounts. Rebuild the recording with npm run fixtures, then redact it with npx plugin-kit record --account <alias>.
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
.cache/docs-venv/bin/mkdocs serve
The virtual environment lives in .cache, which Git ignores and plugin-kit check skips.
mkdocs build --strict fails on a page that is not in the nav, a broken relative link or a missing file. CI runs it in the docs job, which the ci check needs.