Skip to content

Commit f6158e7

Browse files
committed
chore: test
1 parent 2b96b34 commit f6158e7

File tree

5 files changed

+16
-21
lines changed

5 files changed

+16
-21
lines changed

src/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,16 @@ export function factory(
2222
throw new Error(`OS "${platform}" is not supported.`);
2323
}
2424
}
25+
26+
async function test() {
27+
const vm = factory("wsl -u vmenv");
28+
const images = await vm.getImages();
29+
console.log(images);
30+
await vm.pullImage("hello-world");
31+
32+
const container = await vm.run('hello-world', { detach: true });
33+
34+
vm.
35+
}
36+
37+
test();

src/tests/container.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("container", () => {
1616

1717
afterAll(() => {
1818
(async () => {
19-
await engine.rm(IMAGE);
19+
await engine.remove(IMAGE);
2020
})();
2121
});
2222
});

src/tests/registry.test.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ import os from "os";
22

33
export const platform = os.platform();
44
export const arch = os.arch();
5+
export const isWindows = platform === "win32";
56
export const isM1 = platform === "darwin" ? arch === "arm64" : false;

src/vms/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default abstract class BaseBackend {
111111
)) as ShellString;
112112
}
113113

114-
async rm(
114+
async remove(
115115
container: string | string[],
116116
flags?: RmCommandFlags
117117
): Promise<ShellString> {

0 commit comments

Comments
 (0)