Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
import { describe, expect, test } from "vitest";
import { join } from "node:path";
import { getLocalProjectStateDirectory } from "./config";
describe("local project state directories", () => {
test("keeps opaque project ids inside the project scope", () => {
expect(getLocalProjectStateDirectory("/workspace", "..")).toBe(
join("/workspace", ".webstudio", "projects", "%2E%2E")
);
expect(getLocalProjectStateDirectory("/workspace", "project/child")).toBe(
join("/workspace", ".webstudio", "projects", "project%2Fchild")
);
});
});