mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-09 18:28:15 +01:00
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.
18 lines
906 B
TypeScript
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');
|
|
});
|
|
});
|