test(host-kit): share destination test helpers and pin the UNC trailing-dot rule

Merged
TH
8d ago
+21-19

Summary

Follow-ups to #4745 and #4747 from their review notes, 5 files:

  • skipOnWindows and tree() are exported once from script-destination-host.fixtures.ts instead of being declared in both entry-name.test.ts and script-destination-entry.test.ts.
  • atomic-publish.test.ts uses the host-kit-atomic-publish- temp-dir prefix.
  • The name table gains \\server\share.\journey.ad and \\server\pipe.\recorder, both refused, to pin the UNC trailing-dot rule.
  • The ADR 0016 sentence on windows_path_form now names every shape it refuses: drive-relative paths such as C:journey.ad, and relative or ~/ paths joined to a working directory or home of an unsupported shape.

Only that one ADR sentence changes. #4744 also edits ADR 0016; whichever lands second rebases.

Validation

At cbb05b9730:

  • With the trailing-dot check removed from entry-name.ts, both new rows fail; with it restored, they pass.
  • host-kit and remote unit suites: 996 passed. Typecheck, lint, fallow audit --base origin/main: pass.
  • CI validates the head.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.