testing: peek diff test outputs

This commit is contained in:
Connor Peet
2021-01-12 12:57:22 -08:00
parent 989f2eb812
commit 04efea43fa
20 changed files with 452 additions and 71 deletions

View File

@@ -212,6 +212,16 @@ export class ExtHostTesting implements ExtHostTestingShape {
throw e;
}
}
public $lookupTest(req: TestIdWithProvider): Promise<InternalTestItem | undefined> {
const owned = this.ownedTests.getTestById(req.testId);
if (!owned) {
return Promise.resolve(undefined);
}
const { actual, previousChildren, previousEquals, ...item } = owned;
return Promise.resolve(item);
}
}
const keyMap: { [K in keyof Omit<RequiredTestItem, 'children'>]: null } = {