Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/tests/unit/runnable_env.test.ts')
-rw-r--r--editors/code/tests/unit/runnable_env.test.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/tests/unit/runnable_env.test.ts b/editors/code/tests/unit/runnable_env.test.ts
index b1407ce019..21bdaf5384 100644
--- a/editors/code/tests/unit/runnable_env.test.ts
+++ b/editors/code/tests/unit/runnable_env.test.ts
@@ -10,6 +10,7 @@ function makeRunnable(label: string): ra.Runnable {
kind: "cargo",
args: {
cargoArgs: [],
+ cwd: ".",
executableArgs: [],
cargoExtraArgs: [],
},
@@ -18,7 +19,8 @@ function makeRunnable(label: string): ra.Runnable {
function fakePrepareEnv(runnableName: string, config: RunnableEnvCfg): Record<string, string> {
const runnable = makeRunnable(runnableName);
- return prepareEnv(runnable, config);
+ const runnableArgs = runnable.args as ra.CargoRunnableArgs;
+ return prepareEnv(runnable.label, runnableArgs, config);
}
export async function getTests(ctx: Context) {