Testing¶
You need Node 24.
npm run check is the whole gate:
| Step | What it proves |
|---|---|
npm run lint | Biome's recommended lint rules pass |
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, and CI fails when the committed file differs |
npm test | the unit, host and fixture tests |
npm run pack | the tarball holds the built server, skills, assets, README and licence, and nothing else |
npx plugin-kit check | conformance T0 and T1, the doc file set, the forbidden patterns and no bundled kit |
npx plugin-kit docs --check | every generated doc section matches the manifest |
The suites¶
| Suite | Proves |
|---|---|
test/accounts.test.ts | one MCP server per alias, the default server and a bad-alias refusal |
test/provider.test.ts | the pages, cursors, refusals, probe and snapshot mapping |
test/handlers.test.ts | every handler's answer, checked with the contract's own consumer check |
test/fixture.test.ts | every recorded conformance answer replays through the handlers without drift |
test/manifest.test.ts | the package name, the 83-method table, the sources, the aliases and the handler table |
test/permissions.test.ts | the generated rules fail closed, including the mcp:* wildcard before the 78 specifics |
test/tool-read.test.ts | the host tool executor's mapping, its JSON content and its sign-in refusal |
test/host/tool-read.test.ts | a tool's answer through the real OpenCode 2.4.1 host and a loopback MCP server |
test/skills.test.ts | the two shipped skills, every YAML block form and a malformed file's refusal |
test/host/skills.test.ts | every skill is registered on the real OpenCode 2.4.1 host with its YAML description |
test/repository-style.test.ts | the README's sections, contract and links, the docs site and its jobs, and no legacy word |
Fixtures¶
fixtures/conformance.json is the plugin's evidence to the conformance kit. npm run fixtures rebuilds it from the deterministic fake Linear MCP executor in test/support/handlers.ts, and test/fixture.test.ts replays every recorded answer through the handlers so the fixture cannot drift.
The plugin has no test Linear workspace. Once one exists, record from two real accounts with npx plugin-kit record --account work and --account personal, and delete scripts/record-fixture.mjs. plugin-kit record redacts credentials, emails, phone numbers and home directories before it writes.
The contract pin¶
package.json pins the contract to the release tag git+https://github.com/we-the-rebel-alliance/plugin-contract.git#v0.1.1, and moves the pin with the contract's release. Never copy a contract module into this repository.
The committed package-lock.json records the contract's repository over git+https, so a fresh npm ci needs no SSH key. Keep it that way.
Contributing¶
CONTRIBUTING.md has the pull request rules, the manifest-first order for a new capability and the release steps.