test: add validation test for folder/workspace mutual exclusion

This commit is contained in:
blink-so[bot] 2025-08-20 23:16:29 +00:00
parent 4d4584624e
commit 2da86abcb9

View File

@ -38,5 +38,17 @@ describe("vscode-web", async () => {
expect(t).toThrow("Offline mode does not allow extensions to be installed"); expect(t).toThrow("Offline mode does not allow extensions to be installed");
}); });
it("folder and workspace can not be used together", () => {
const t = async () => {
await runTerraformApply(import.meta.dir, {
agent_id: "foo",
accept_license: "true",
folder: "/home/coder",
workspace: "/home/coder/project.code-workspace",
});
};
expect(t).toThrow("Cannot specify both 'folder' and 'workspace'. Please use only one.");
});
// More tests depend on shebang refactors // More tests depend on shebang refactors
}); });