(exitCode: number, outputPath: string | undefined)
| 168 | }); |
| 169 | |
| 170 | async function runCommand(exitCode: number, outputPath: string | undefined) { |
| 171 | const command: GetSDKCommandConfig = { |
| 172 | args: [`${exitCode}`], |
| 173 | cwd: undefined, |
| 174 | env: outputPath ? { |
| 175 | DC_TEST_DART_PATH: outputPath, |
| 176 | } : undefined, |
| 177 | executable, |
| 178 | }; |
| 179 | return privateApi.sdkUtils?.runCustomGetSDKCommand(command, "dart.getDartSdkCommand", false); |
| 180 | } |
| 181 | |
| 182 | it("handles valid path", async () => { |
| 183 | const result = await runCommand(0, privateApi.workspaceContext.sdks.dart); |
no test coverage detected