fix(#344): harden windows test assertions and pin windows-2025 labels (#349)

This commit is contained in:
Tom Boucher
2026-05-26 16:14:15 -04:00
committed by GitHub
parent 70c092ecd4
commit bd8b9eaf9d
4 changed files with 13 additions and 20 deletions

View File

@@ -892,7 +892,7 @@ describe('current-timestamp command', () => {
test('dispatches directly to CJS handler (no SDK bridge) to avoid Windows native crash path', () => {
const sourcePath = path.join(__dirname, '..', 'get-shit-done', 'bin', 'gsd-tools.cjs');
const source = fs.readFileSync(sourcePath, 'utf8');
const match = source.match(/case 'current-timestamp':\s*\{[\s\S]*?\n\s*break;\n\s*\}/);
const match = source.match(/case 'current-timestamp':\s*\{[\s\S]*?\r?\n\s*break;\r?\n\s*\}/);
assert.ok(match, 'current-timestamp case block must exist in gsd-tools.cjs');