implemented the cd command - not tested properly

This commit is contained in:
2026-07-28 05:44:17 +02:00
parent 3b50214041
commit f87aa4eb85
6 changed files with 233 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { descriptor as echo } from "@core/commands/echo";
import type { ResultSuccess } from "@core/result";
import { createInitialShellState, type ShellState } from "@core/shell_state";
import type { UserInfo } from "@core/user_info";
import { buildTestFS, type FixtureNode } from "@tests/helpers/filesystems_fixture";
@@ -58,6 +59,6 @@ test("returns a Result of type success", () => {
const string = new TextDecoder().decode(output.result.stdout.toArray());
expect(output.result.type).toBe("success");
expect(output.result.exitCode).toBe(0);
expect((output.result as ResultSuccess).exitCode).toBe(0);
expect(string).toBe("hello world");
});