7b5af2dd9f
- converted relative imports to path aliases ($c/*, $ai/*, $tui/*, etc.) across all packages - added per-package tsconfig.json with complete path mappings for runtime resolution - set importModuleSpecifier to non-relative for IDE auto-import preferences - updated dev script to run from monorepo root for consistent path resolution
24 lines
839 B
TypeScript
24 lines
839 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { SettingsManager } from "$c/core/settings-manager";
|
|
|
|
describe("SettingsManager python settings", () => {
|
|
it("defaults to both and session", () => {
|
|
const settings = SettingsManager.inMemory();
|
|
|
|
expect(settings.getPythonToolMode()).toBe("both");
|
|
expect(settings.getPythonKernelMode()).toBe("session");
|
|
});
|
|
|
|
it("persists python tool and kernel modes", async () => {
|
|
const settings = SettingsManager.inMemory();
|
|
|
|
await settings.setPythonToolMode("bash-only");
|
|
await settings.setPythonKernelMode("per-call");
|
|
|
|
expect(settings.getPythonToolMode()).toBe("bash-only");
|
|
expect(settings.getPythonKernelMode()).toBe("per-call");
|
|
expect(settings.serialize().python?.toolMode).toBe("bash-only");
|
|
expect(settings.serialize().python?.kernelMode).toBe("per-call");
|
|
});
|
|
});
|