test: have typed RunResult.results (#34883)

This commit is contained in:
Max Schmitt 2025-02-21 05:22:59 -08:00 committed by GitHub
parent 48fb536e12
commit 428f196036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -596,7 +596,7 @@ test('should understand worker fixture params in overrides calling base', async
]}; ]};
`, `,
}); });
const outputs = result.results.map(r => r.stdout[0].text.replace(/\s/g, '')); const outputs = result.results.map(r => r.stdout.filter(output => 'text' in output)[0].text.replace(/\s/g, ''));
expect(outputs.sort()).toEqual(['foo-p1-override-bar', 'foo-p2-override-bar', 'foo-p3-override-bar']); expect(outputs.sort()).toEqual(['foo-p1-override-bar', 'foo-p2-override-bar', 'foo-p3-override-bar']);
}); });

View file

@ -48,7 +48,7 @@ export type RunResult = {
interrupted: number, interrupted: number,
didNotRun: number, didNotRun: number,
report: JSONReport, report: JSONReport,
results: any[], results: JSONReportTestResult[],
}; };
type TSCResult = { type TSCResult = {