fix(mcp): use linux local data dir
This commit is contained in:
1 parent
829f6dc7eb
commit
d91f1fbb38
6 files changed
+33
-27
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { test } from "vitest";
|
||||
import { appDataDirFromInputs } from "../src/paths.js";
|
||||
|
||||
test("default app data dir matches Tauri local data dir on Linux", () => {
|
||||
assert.equal(appDataDirFromInputs({ platform: "linux", home: "/home/dbx" }), "/home/dbx/.local/share/com.dbx.app");
|
||||
});
|
||||
|
||||
test("DBX_DATA_DIR overrides the default app data dir", () => {
|
||||
assert.equal(appDataDirFromInputs({ platform: "linux", home: "/home/dbx", envDataDir: "/tmp/dbx-data" }), "/tmp/dbx-data");
|
||||
});
|
||||
Reference in new issue
Block a user