From fd76e82683210694fa5d86b570774dcb09418d7e Mon Sep 17 00:00:00 2001 From: garrytan Date: Tue, 3 Nov 2026 07:34:17 +0000 Subject: [PATCH] test(ci-tree-reuse): type the skipped_files fixture for the test typecheck ratchet Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/ci-tree-reuse.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ci-tree-reuse.test.ts b/test/ci-tree-reuse.test.ts index 235c562c6..21a447fdd 100644 --- a/test/ci-tree-reuse.test.ts +++ b/test/ci-tree-reuse.test.ts @@ -133,7 +133,7 @@ describe('treeRecord: the tested-tree producer', () => { // skipped file is not listed, a partly skipped one is, or a run without complete counts claims a list test('skipped_files lists only files whose every test skipped; a partly skipped file stays covered; incomplete counts leave it out', () => { const n = (tests: number, pass: number, skip: number) => ({ tests, pass, fail: 0, skip, todo: 0, expects: pass }); - const counted = [ + const counted: Array<{ outcome: { summary: { testsRan: number }; counts: { complete: boolean; files: Record> } } }> = [ { outcome: { summary: { testsRan: 7 }, counts: { complete: true, files: { 'test/a.test.ts': n(3, 0, 3), 'test/b.test.ts': n(4, 2, 2) } } } }, { outcome: { summary: { testsRan: 5 }, counts: { complete: true, files: { 'test/c.test.ts': n(5, 5, 0) } } } }, ];