We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1624982 commit 5700c50Copy full SHA for 5700c50
1 file changed
src/client/testing/common/services/unitTestDiagnosticService.ts
@@ -34,6 +34,9 @@ export class UnitTestDiagnosticService implements ITestDiagnosticService {
34
}
35
public getMessagePrefix(status: NonPassingTestStatus): string | undefined {
36
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`).
40
return msgType !== undefined ? this.MessagePrefixes.get(msgType) : undefined;
41
42
public getSeverity(unitTestSeverity: NonPassingTestSeverity): DiagnosticSeverity | undefined {
0 commit comments