Files
Ivan Pereira bbb5623f25 refactor(runtime): replace Bun dependency with Node fetch
Run Perplexity search and auth requests through pi's Node runtime instead of
shelling out to Bun. Move development and CI commands to npm, add a Node test
build path, and keep OTP auth fail-fast when Set-Cookie headers are not
available.
2026-06-23 15:51:16 +01:00

22 lines
585 B
TypeScript

import { describe, expect, test } from "./test-helpers.js";
describe("extension entrypoint", () => {
test("registers the config command", async () => {
const { default: registerExtension } = await import(`../src/index.js?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");
});
});