testing: make uri optional

This commit is contained in:
Connor Peet
2021-05-06 09:39:15 -07:00
parent fd62540523
commit 64bd1fc65a
9 changed files with 22 additions and 12 deletions

View File

@@ -666,7 +666,7 @@ export class TestItemFilteredWrapper extends TestItemImpl {
}
}
const nowMatches = this.children.size > 0 || this.actual.uri.toString() === this.filterDocument.uri.toString();
const nowMatches = this.children.size > 0 || this.actual.uri?.toString() === this.filterDocument.uri.toString();
this._cachedMatchesFilter = nowMatches;
if (nowMatches !== didMatch) {