Files
oh-my-pi/packages/coding-agent/test/core/settings-manager-python.test.ts
T
can1357 7b5af2dd9f refactor(build): migrated imports to path aliases with per-package tsconfig support
- 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
2026-01-23 11:56:32 +01:00

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");
});
});