Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
command-docs-gate:
# ci.yml ignores website/**, so a docs-only PR never triggers the unit lane
# that carries the command-reference coverage gate
# (src/__tests__/command-doc-coverage.test.ts). Run it here — where
# (test/repo-guards/command-doc-coverage.test.ts). Run it here — where
# commands.md changes DO trigger a workflow — so documenting a retired
# command (or dropping a public command's docs) fails on docs-only PRs too.
# Unlike deploy-preview this has no fork guard: the gate is read-only and
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"check:production-exports": "fallow dead-code --config fallow-production-exports.json --production --unused-exports --fail-on-issues",
"check:bundle-owner-files": "node --experimental-strip-types scripts/check-bundle-owner-files.ts",
"check:package": "node --experimental-strip-types scripts/check-package.ts",
"check:command-docs": "vitest run --project unit-core src/__tests__/command-doc-coverage.test.ts",
"check:command-docs": "vitest run --project unit-core test/repo-guards/command-doc-coverage.test.ts",
"check:doc-links": "node --experimental-strip-types scripts/node-test-tmpdir.ts --experimental-strip-types --test scripts/__tests__/check-doc-links.test.ts && pnpm --dir website build && node --experimental-strip-types scripts/check-doc-links.ts",
"check:doc-prose": "node --experimental-strip-types scripts/node-test-tmpdir.ts --experimental-strip-types --test scripts/__tests__/check-doc-prose.test.ts && node --experimental-strip-types scripts/check-doc-prose.ts",
"check:agent-guidance": "node --experimental-strip-types scripts/node-test-tmpdir.ts --experimental-strip-types --test scripts/__tests__/agent-guidance-contract.test.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-affected/device-lanes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ test('the fixture app owns the mobile lanes whichever subtree changes', () => {
test('unit tests under src/ and packages/*/src own no lane', () => {
for (const file of [
'packages/daemon/src/sessions/handlers/snapshot-runtime-route.test.ts',
'src/__tests__/contracts/interaction-guarantees.test.ts',
'src/__tests__/agent-device-client.test.ts',
'packages/platform-apple/src/core/__tests__/apps.test.ts',
'packages/platform-apple/src/runtime.test.ts',
]) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/gate/model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ test('a filtered Vitest run does not credit the whole project', () => {
const units = scriptUnits(
'docs',
scriptModel({
docs: 'vitest run --project unit-core src/__tests__/command-doc-coverage.test.ts',
docs: 'vitest run --project unit-core test/repo-guards/command-doc-coverage.test.ts',
}),
);
assert.deepEqual(units, ['vitest:unit-core@src/__tests__/command-doc-coverage.test.ts']);
assert.deepEqual(units, ['vitest:unit-core@test/repo-guards/command-doc-coverage.test.ts']);
assert.equal(
unitCovers('vitest:unit-core', units[0] as string),
true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import assert from 'node:assert/strict';
import { describe, test } from 'vitest';
import { PUBLIC_COMMANDS, isKnownCliCommandName } from '@agent-device/command-registry/catalog';
import { cliCommandAlias } from '@agent-device/command-registry/cli-command-aliases';
import { getCliCommandSchema } from '../commands/schema/command-schema.ts';
import { buildCommandUsage } from '../commands/schema/usage.ts';
import { getCliCommandSchema } from '../../src/commands/schema/command-schema.ts';
import { buildCommandUsage } from '../../src/commands/schema/usage.ts';

// Enumerates the public command surface (`PUBLIC_COMMANDS`, derived from the
// command descriptor registry) against the human-facing command reference at
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import assert from 'node:assert/strict';
import fs from 'node:fs';
import path from 'node:path';

export const PROJECT_ROOT = path.resolve(import.meta.dirname, '../../..');
export const PROJECT_ROOT = path.resolve(import.meta.dirname, '../..');

const RUNNER_SOURCES_DIR = path.join(
PROJECT_ROOT,
Expand Down
Loading