diff --git a/packages/lib/src/doctor.test.ts b/packages/lib/src/doctor.test.ts index c361dc3a..bae35658 100644 --- a/packages/lib/src/doctor.test.ts +++ b/packages/lib/src/doctor.test.ts @@ -122,21 +122,21 @@ const FAILING: Record Facts; problem: unit: () => repo({ marker: { problem: 'PLEXUS.md: no frontmatter: expected a `---` block at the top' } }), problem: /^PLEXUS\.md: no frontmatter/, }, - 'PLX-Repo/Verbs': { + 'PLX-Repo/Hooks': { unit: (deviations = []) => repo({ - tasks: { names: VERBS.filter((v) => v !== 'build') }, + hk: ['pre-commit'], marker: { declaration: { deviations, body: reasoned(deviations) } }, }), - problem: /^no root mise task `build`: add one, a no-op that passes/, + problem: /^hk\.pkl wires no `pre-push` hook$/, }, - 'PLX-Repo/Hooks': { + 'PLX-Repo/Verbs': { unit: (deviations = []) => repo({ - hk: ['pre-commit'], + tasks: { names: VERBS.filter((v) => v !== 'build') }, marker: { declaration: { deviations, body: reasoned(deviations) } }, }), - problem: /^hk\.pkl wires no `pre-push` hook$/, + problem: /^no root mise task `build`: add one, a no-op that passes/, }, 'PLX-App/Marker': { unit: (d) => app(undefined, {}, d), diff --git a/packages/lib/src/doctor.ts b/packages/lib/src/doctor.ts index d3bca5c3..befc024f 100644 --- a/packages/lib/src/doctor.ts +++ b/packages/lib/src/doctor.ts @@ -388,8 +388,8 @@ interface AppCheck { /** Every requirement doctor checks, by name: what the contract pages list, in their order. */ export const CHECKS: Readonly> = { 'PLX-Repo/Marker': { binds: 'repo', check: repoMarker }, - 'PLX-Repo/Verbs': { binds: 'repo', check: verbs }, 'PLX-Repo/Hooks': { binds: 'repo', check: hooks }, + 'PLX-Repo/Verbs': { binds: 'repo', check: verbs }, 'PLX-App/Marker': { binds: 'app', check: appMarker }, 'PLX-App/Compose': { binds: 'app', check: composeFile }, 'PLX-App/TenantLabel': { binds: 'app', check: onCompose(tenantLabel) }, diff --git a/packages/lib/src/testing/doctor-checks.md b/packages/lib/src/testing/doctor-checks.md index 571d5a32..5af6546c 100644 --- a/packages/lib/src/testing/doctor-checks.md +++ b/packages/lib/src/testing/doctor-checks.md @@ -8,7 +8,9 @@ set to a compendium checkout it reads the pages themselves instead. `plx doctor` checks `PLX-Repo/Marker`. -`plx doctor` checks of `PLX-Repo/Verbs` that `dev`, `build`, `check`, `test` and `e2e` exist as root mise tasks and that no `verify` is left, not what they run, in which order, or whether they pass, and of `PLX-Repo/Hooks` that `hk.pkl` wires a pre-commit hook and a pre-push hook, not what either runs. +`plx doctor` checks of `PLX-Repo/Hooks` that `hk.pkl` wires a pre-commit hook and a pre-push hook, written literally in its `hooks` block, not what either runs. + +`plx doctor` checks of `PLX-Repo/Verbs` that `dev`, `build`, `check`, `test` and `e2e` exist as root mise tasks and that no `verify` is left, not what they run, in which order, or whether they pass. `plx doctor` checks `PLX-App/Marker`.