testing: api feedback

This commit is contained in:
Connor Peet
2021-07-21 15:19:56 -07:00
parent 2bc4f8f94b
commit 38e09192c0
6 changed files with 165 additions and 162 deletions

View File

@@ -158,6 +158,11 @@ const createTestItemCollection = (owningItem: TestItemImpl): TestItemCollectionI
let mapped = new Map<string, TestItemImpl>();
return {
/** @inheritdoc */
get size() {
return mapped.size;
},
/** @inheritdoc */
forEach(callback: (item: vscode.TestItem, collection: vscode.TestItemCollection) => unknown, thisArg?: unknown) {
for (const item of mapped.values()) {