Skip to content

Commit 20ca435

Browse files
committed
Mock missing property on Linux/windows
1 parent f265ae3 commit 20ca435

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit-tests/debugger/buildConfig.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { expect } from "chai";
1515
import * as sinon from "sinon";
1616

1717
import { FolderContext } from "@src/FolderContext";
18+
import { LinuxMain } from "@src/LinuxMain";
1819
import { SwiftPackage } from "@src/SwiftPackage";
1920
import configuration, { FolderConfiguration } from "@src/configuration";
2021
import { BuildConfigurationFactory } from "@src/debugger/buildConfig";
@@ -67,6 +68,9 @@ suite("BuildConfig Test Suite", () => {
6768
workspaceFolder: { uri: { fsPath: "/test/workspace" }, name: "TestWorkspace" } as any,
6869
swiftVersion: new Version(6, 0, 0),
6970
relativePath: "",
71+
linuxMain: {
72+
exists: true,
73+
} as any as LinuxMain,
7074
});
7175
});
7276

0 commit comments

Comments
 (0)