MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / runCommand

Function runCommand

src/test/dart/utils/sdk.test.ts:170–180  ·  view source on GitHub ↗
(exitCode: number, outputPath: string | undefined)

Source from the content-addressed store, hash-verified

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);

Callers 1

sdk.test.tsFile · 0.85

Calls 1

Tested by

no test coverage detected