mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-09 10:18:32 +01:00
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.
This commit is contained in:
1 parent
981798f9bc
commit
9de8be3df1
5 files changed
+112
-90
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 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');
|
||||
});
|
||||
});
|
||||
@@ -790,13 +790,3 @@ describe('host renders name the host\'s own tools and identities (#2626, #2015,
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user