Skip to content

Commit 320b378

Browse files
authored
Fixup TestExplorer log messages (#1920)
Issue: #1915
1 parent b0734af commit 320b378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TestExplorer/TestExplorer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class TestExplorer {
100100
const target = await folder.swiftPackage.getTarget(uri.fsPath);
101101
if (target?.type !== "test") {
102102
this.logger.info(
103-
`Target ${target} is not a test target, aborting looking for tests within it`,
103+
`Target ${target?.name ?? "undefined"} is not a test target, aborting looking for tests within it`,
104104
"Test Explorer"
105105
);
106106
return;
@@ -110,7 +110,7 @@ export class TestExplorer {
110110
try {
111111
const tests = await this.lspTestDiscovery.getDocumentTests(folder.swiftPackage, uri);
112112
this.logger.info(
113-
`LSP test discovert found ${tests.length} top level tests`,
113+
`LSP test discovery found ${tests.length} top level tests`,
114114
"Test Explorer"
115115
);
116116
TestDiscovery.updateTestsForTarget(

0 commit comments

Comments
 (0)