diff --git a/src/client/unittests/pytest/services/testMessageService.ts b/src/client/unittests/pytest/services/testMessageService.ts index 05c1c1f4d5ace..53738236b50b0 100644 --- a/src/client/unittests/pytest/services/testMessageService.ts +++ b/src/client/unittests/pytest/services/testMessageService.ts @@ -24,9 +24,9 @@ export class TestMessageService implements ITestMessageService { * @param testResults Details about all known tests. */ public async getFilteredTestMessages(rootDirectory: string, testResults: Tests): Promise { - const testFuncs: FlattenedTestFunction[] = testResults.testFunctions.reduce((filtered, test) => { + const testFuncs = testResults.testFunctions.reduce((filtered, test) => { if (test.testFunction.passed !== undefined || test.testFunction.status === TestStatus.Skipped) { - filtered.push(test as never); + filtered.push(test); } return filtered; }, []);