From f1ca48f7afe18ceab0e2c6307a36e8b3190e3a3e Mon Sep 17 00:00:00 2001 From: garrytan Date: Wed, 28 Oct 2026 22:42:31 +0000 Subject: [PATCH] test(pr-shots): clear BROWSE_STATE_FILE so the #3560 case runs under the shard runner Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/pr-shots.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pr-shots.test.ts b/test/pr-shots.test.ts index e81268c92..90d2459ec 100644 --- a/test/pr-shots.test.ts +++ b/test/pr-shots.test.ts @@ -134,7 +134,7 @@ describe('gstack-pr-shots CLI', () => { fs.writeFileSync(browse, `#!/usr/bin/env bash\nexec ${JSON.stringify(process.execPath)} --no-env-file --config=/dev/null ${JSON.stringify(path.join(stubDir, 'state-dir.ts'))}\n`, { mode: 0o755 }); const before = wtreeFingerprint({ cwd: dir }); expect('tree' in before).toBe(true); - const r = cli(['--path', 'doc.md', '--caption', 'c'], dir, { GSTACK_STATE_ROOT: tmp('shots-state-'), GSTACK_BROWSE_BIN: browse }); + const r = cli(['--path', 'doc.md', '--caption', 'c'], dir, { GSTACK_STATE_ROOT: tmp('shots-state-'), GSTACK_BROWSE_BIN: browse, BROWSE_STATE_FILE: '' }); expect(r.out).toMatch(/^SHOT_PNG: failed /m); expect(fs.existsSync(path.join(dir, '.gstack', '.gitignore'))).toBe(true); expect(fs.readFileSync(path.join(dir, '.gitignore'), 'utf8')).toBe('node_modules/\n.gstack/tmp/\n');