First Release of Claw3D (#11)

Co-authored-by: iamlukethedev <iamlukethedev@users.noreply.github.com>
This commit is contained in:
Luke The Dev
2026-03-19 23:14:04 -05:00
committed by GitHub
parent 5ea96b2650
commit 4fa4f13558
431 changed files with 105438 additions and 14 deletions
+23
View File
@@ -0,0 +1,23 @@
// @vitest-environment node
import os from "node:os";
import path from "node:path";
import { describe, expect, it } from "vitest";
describe("studio setup paths", () => {
it("resolves settings path under OPENCLAW_STATE_DIR when set", async () => {
const { resolveStudioSettingsPath } = await import("../../server/studio-settings");
const settingsPath = resolveStudioSettingsPath({
OPENCLAW_STATE_DIR: "/tmp/openclaw-state",
} as unknown as NodeJS.ProcessEnv);
expect(settingsPath).toBe("/tmp/openclaw-state/claw3d/settings.json");
});
it("resolves settings path under ~/.openclaw by default", async () => {
const { resolveStudioSettingsPath } = await import("../../server/studio-settings");
const settingsPath = resolveStudioSettingsPath({} as NodeJS.ProcessEnv);
expect(settingsPath).toBe(
path.join(os.homedir(), ".openclaw", "claw3d", "settings.json")
);
});
});