mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-05 08:23:59 +01:00
test: type the saved fixture PR row for the test-code ratchet (GSTA-129)
CI's typecheck:test ratchet refused one new TS2698 (spread of a loosely typed fixture row) in the slot-1 freeze test; the row is read as any, as the neighbouring state writes already do. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
81824b8cbf
commit
73a678eb89
1 file changed
+1
-1
@@ -1033,7 +1033,7 @@ describe('verify, freeze, repair and clear', () => {
|
||||
const smuggled = fx.repo.git('show', `${t.prefixes[0].commit}:CHANGELOG.md`).replace('# Changelog\n', '# Changelog\n\n## [1.2.4.0] - 2026-10-18\n\n- #1 change\n- added after the gate\n') + '\n';
|
||||
const broken = publishMain(fx, t.prefixes[1].commit, '1.2.4.0', { file: 'CHANGELOG.md', text: smuggled });
|
||||
// While GitHub's answer for #1 cannot be read, the verify neither freezes nor says "nothing merged": it refuses and asks to be rerun.
|
||||
const row = fx.read().prs['1'];
|
||||
const row = fx.read().prs['1'] as any;
|
||||
fx.write(d => { delete d.prs['1']; });
|
||||
const unreadable = v('1');
|
||||
expect(unreadable.status).toBe(EXIT.refused);
|
||||
|
||||
Reference in new issue
Block a user