Skip to content

fix: pass --sync flag in template-sync tests#1040

Merged
bradygaster merged 2 commits into
mainfrom
fix/template-sync-flag
Apr 25, 2026
Merged

fix: pass --sync flag in template-sync tests#1040
bradygaster merged 2 commits into
mainfrom
fix/template-sync-flag

Conversation

@tamirdresher

Copy link
Copy Markdown
Collaborator

Problem

The \ emplate-sync.test.ts\ tests fail on main because \sync-templates.mjs\ requires an explicit --sync\ flag (or \SQUAD_SYNC_TEMPLATES=1\ env var, or direct invocation with \�rgv.length <= 2). When run from vitest, extra argv entries mean the direct-invocation check fails, so the script silently skips the sync — causing byte-comparison assertions to fail.

This was the one remaining fix from #1031 that didn't land before merge.

Fix

Pass --sync\ explicitly in both:

  1. The \�eforeAll\ hook (pre-test sync)
  2. The script-execution test assertion

Testing

  • Verified the fix works on the prior branch (\ ix/cherry-pick-dotnet-tests-to-main\ CI passed)
  • This is a minimal, isolated change to unblock main CI

Copilot and others added 2 commits April 25, 2026 15:48
The sync-templates.mjs script requires --sync, SQUAD_SYNC_TEMPLATES=1 env
var, or direct invocation (argv.length <= 2) to actually sync. When run
from vitest, extra argv entries mean the direct-invocation check fails,
so the script silently skips the sync. Pass --sync explicitly in both
the beforeAll hook and the script-execution test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add missing dynamic import for skill.ts command (APM integration).
The cli-command-wiring test expects all commands in cli/commands/
to have a corresponding import in cli-entry.ts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster merged commit b7695db into main Apr 25, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants