Skip to content

Commit 5700c50

Browse files
Add a note.
1 parent 1624982 commit 5700c50

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/client/testing/common/services/unitTestDiagnosticService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export class UnitTestDiagnosticService implements ITestDiagnosticService {
3434
}
3535
public getMessagePrefix(status: NonPassingTestStatus): string | undefined {
3636
const msgType = this.MessageTypes.get(status);
37+
// If `msgType` is `undefined` then it means we've added a new
38+
// failing test status but forgot to support it here (or it means
39+
// elsewhere we asserted a bogus value, like `undefined`).
3740
return msgType !== undefined ? this.MessagePrefixes.get(msgType) : undefined;
3841
}
3942
public getSeverity(unitTestSeverity: NonPassingTestSeverity): DiagnosticSeverity | undefined {

0 commit comments

Comments
 (0)