refactor(move): name the agent-device client tests for their module

Merged
TH
20h ago
+1-1

Summary

Class r: eleven tests in src/__tests__ named client-* all exercise src/agent-device-client.ts, so they now carry its name (<module>-<aspect>): client.test.ts โ†’ agent-device-client.test.ts, client-wait โ†’ agent-device-client-wait, and so on for abort-signal, apps, interactions-input-filtering, leases, snapshot-{keyboard-fact,presented-surface,truncation,viewport}, system-commands.

The renames are one git mv commit, 100% similarity, zero content lines (git diff -M --summary: 11 renames). The second commit edits one comment that named the old file. They stay in src/__tests__, the parent's __tests__ of src/agent-device-client.ts, next to agent-device-client-auth.test.ts. No exports, fixture or barrel change. Seeds no colocation baseline entry yet (rule not on main).

Validation

Head eadce9acf: check:quick, check:layering, check:fallow, check:gate-manifest, check:affected --run, pnpm format all pass.

  • Parity: 81 tests before, 81 after, per file identical (vitest run <files> --reporter=json): client 40, abort-signal 4, apps 9, interactions-input-filtering 2, leases 1, snapshot-keyboard-fact 5, -presented-surface 7, -truncation 1, -viewport 3, system-commands 8, wait 1.
  • Selection: all run in unit-core (src/**/*.test.ts); renames stay in the same directory.
  • vi.mock: none of these files uses it.
  • Orphan count (.tmp/orphans.mjs) on this branch: 99 โ†’ 88.

๐Ÿค– Generated with Claude Code