testing: update test types for feedback

This commit is contained in:
Connor Peet
2021-07-19 08:21:26 -07:00
parent d22e9b4e37
commit 3f9af31b25
4 changed files with 11 additions and 27 deletions

View File

@@ -145,7 +145,7 @@ export class InvalidTestItemError extends Error {
}
}
export type TestItemCollectionImpl = vscode.TestItemCollection & { toJSON(): readonly TestItemImpl[] };
export type TestItemCollectionImpl = vscode.TestItemCollection & { toJSON(): readonly TestItemImpl[] } & Iterable<TestItemImpl>;
export const createTestItemCollection = (owningItem: TestItemImpl): TestItemCollectionImpl => {
const api = getPrivateApiFor(owningItem);