Skip to content

Commit e7bfb3f

Browse files
committed
cleanup
1 parent 4109b87 commit e7bfb3f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

scripts/test.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import { $ } from "execa";
55
import { packagePrefix } from "@/scripts/project.js";
66
import { installPackage } from "@/scripts/tasks/installPackage.js";
77

8+
// Not to be run in CI.
9+
810
await installPackage();
911

10-
const tempPath = `/tmp/${packagePrefix}/tests`;
12+
const tempPath = `/tmp/${packagePrefix}tests`;
1113
const $$ = $({ stdio: "inherit", verbose: "full", cwd: tempPath });
1214

1315
const reset = async (path: string) => {
@@ -24,3 +26,12 @@ await reset(tempPath);
2426
await $$`create-devcontainer typescript`;
2527
await $$`devcontainer up --remove-existing-container --workspace-folder ${tempPath}`;
2628
await $$`devcontainer exec --workspace-folder ${tempPath} pnpm lint`;
29+
30+
// https://github.com/devcontainers/cli/issues/386
31+
await rm(`${tempPath}/.devcontainer/Dockerfile`);
32+
console.log("cleaning up...");
33+
await $({
34+
cwd: tempPath,
35+
reject: false,
36+
stdio: "ignore",
37+
})`devcontainer up --remove-existing-container --workspace-folder ${tempPath}`;

0 commit comments

Comments
 (0)