fix(config): apply defaults to perplexity UI

This commit is contained in:
Ivan Pereira
2026-03-21 20:54:41 +00:00
parent 11c543c0de
commit 041d30651a
13 changed files with 600 additions and 45 deletions
+21
View File
@@ -0,0 +1,21 @@
import { describe, expect, test } from "bun:test";
describe("extension entrypoint", () => {
test("registers the config command", async () => {
const { default: registerExtension } = await import(`../src/index.ts?test=${crypto.randomUUID()}`);
const commands: string[] = [];
registerExtension({
registerCommand(name: string) {
commands.push(name);
},
registerTool() {
return undefined;
},
} as any);
expect(commands).toContain("perplexity-login");
expect(commands).toContain("perplexity-config");
});
});