Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit ac5c275

Browse files
committed
added tests that don't depend on shebang
1 parent 2f248dd commit ac5c275

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

code-server/main.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import { describe, expect, it } from "bun:test";
2-
import {
3-
executeScriptInContainer,
4-
runTerraformApply,
5-
runTerraformInit,
6-
testRequiredVariables,
7-
} from "../test";
2+
import { runTerraformInit, testRequiredVariables } from "../test";
83

94
describe("code-server", async () => {
105
await runTerraformInit(import.meta.dir);
116

127
testRequiredVariables(import.meta.dir, {
138
agent_id: "foo",
149
});
10+
11+
// More tests depend on shebang refactors
1512
});

jupyterlab/main.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
execContainer,
1111
} from "../test";
1212

13-
1413
// executes the coder script after installing pip
1514
const executeScriptInContainerWithPip = async (
1615
state: TerraformState,
@@ -23,7 +22,7 @@ const executeScriptInContainerWithPip = async (
2322
}> => {
2423
const instance = findResourceInstance(state, "coder_script");
2524
const id = await runContainer(image);
26-
const respPip = await execContainer(id, [shell, "-c", "apk add py3-pip"]);
25+
const respPip = await execContainer(id, [shell, "-c", "apk add py3-pip"]);
2726
const resp = await execContainer(id, [shell, "-c", instance.script]);
2827
const stdout = resp.stdout.trim().split("\n");
2928
const stderr = resp.stderr.trim().split("\n");
@@ -54,12 +53,11 @@ describe("jupyterlab", async () => {
5453
]);
5554
});
5655

57-
// TODO: Add faster test to run with pip3.
56+
// TODO: Add faster test to run with pip3.
5857
// currently times out.
5958
// it("runs with pip3", async () => {
6059
// ...
6160
// const output = await executeScriptInContainerWithPip(state, "alpine");
6261
// ...
6362
// });
64-
6563
});

personalize/main.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ describe("personalize", async () => {
3030
"It will run every time your workspace starts. Use it to install personal packages!",
3131
]);
3232
});
33-
3433
});

0 commit comments

Comments
 (0)