test: have typed RunResult.results (#34883)
This commit is contained in:
parent
48fb536e12
commit
428f196036
|
|
@ -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']);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export type RunResult = {
|
|||
interrupted: number,
|
||||
didNotRun: number,
|
||||
report: JSONReport,
|
||||
results: any[],
|
||||
results: JSONReportTestResult[],
|
||||
};
|
||||
|
||||
type TSCResult = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue