Files
gstack/test/copilot-windows-bash.test.ts
T
garrytan 9de8be3df1 test(windows): name the B2, B4, B5 and B12 tests in the curated Windows lane
The runtime-root bundle tests lived in browse/test/config.test.ts and the
Copilot glossary test in test/host-config.test.ts, both excluded from the
Windows lane, so the two Windows-only fixes were never checked on Windows.
Move each into its own Windows-safe file (unchanged assertions) and list it,
the piped-stdin chain test and the /cso docker.exe discovery test as named
Windows coverage in scripts/lib/windows-curation.ts.
2026-10-06 20:42:38 +00:00

18 lines
906 B
TypeScript

/**
* Copilot CLI on Windows ran gstack's extensionless helpers straight from
* PowerShell. The Copilot tool glossary (rendered into every Copilot skill)
* names Git for Windows Bash by full path. Kept out of host-config.test.ts,
* which the curated Windows lane excludes, so Windows runs this check.
*/
import { describe, expect, test } from 'bun:test';
describe('#3047: Copilot on Windows runs bash blocks in Git for Windows Bash', () => {
test('the Copilot tool glossary names Git Bash by full path and forbids PowerShell translation', async () => {
const { default: copilot } = await import('../hosts/copilot');
const glossary = JSON.stringify(copilot.toolRewrites);
expect(glossary).toContain('Git for Windows Bash by its full path');
expect(glossary).toContain('bare `bash` can start WSL');
expect(glossary).toContain('Never translate a block into PowerShell');
});
});