Skip to content

Make VERSION a const, add source headers #89

Make VERSION a const, add source headers

Make VERSION a const, add source headers #89

Triggered via pull request March 23, 2026 19:35
Status Failure
Total duration 19s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
test
Process completed with exit code 1.
src/index.test.ts > Perplexity MCP Server > performSearch > should successfully perform search: src/index.test.ts#L199
AssertionError: expected "vi.fn()" to be called with arguments: [ …(2) ] Received: 1st vi.fn() call: [ "https://api.perplexity.ai/search", - ObjectContaining { + { "body": "{\"query\":\"test query\",\"max_results\":10,\"max_tokens_per_page\":1024}", "headers": { "Authorization": "***", "Content-Type": "application/json", + "User-Agent": "perplexity-mcp/0.8.4", + "X-Source": "mcp-server", }, "method": "POST", + "signal": AbortSignal { + Symbol(kEvents): Map {}, + Symbol(events.maxEventTargetListeners): 10, + Symbol(events.maxEventTargetListenersWarned): false, + Symbol(kHandlers): Map {}, + Symbol(kAborted): false, + Symbol(kReason): undefined, + Symbol(kComposite): false, + }, }, ] Number of calls: 1 ❯ src/index.test.ts:199:28
src/index.test.ts > Perplexity MCP Server > performChatCompletion > should successfully complete chat request: src/index.test.ts#L78
AssertionError: expected "vi.fn()" to be called with arguments: [ …(2) ] Received: 1st vi.fn() call: [ "https://api.perplexity.ai/chat/completions", - ObjectContaining { + { "body": "{\"model\":\"sonar-pro\",\"messages\":[{\"role\":\"user\",\"content\":\"test question\"}]}", "headers": { "Authorization": "***", "Content-Type": "application/json", + "User-Agent": "perplexity-mcp/0.8.4", + "X-Source": "mcp-server", }, "method": "POST", + "signal": AbortSignal { + Symbol(kEvents): Map {}, + Symbol(events.maxEventTargetListeners): 10, + Symbol(events.maxEventTargetListenersWarned): false, + Symbol(kHandlers): Map {}, + Symbol(kAborted): false, + Symbol(kReason): undefined, + Symbol(kComposite): false, + }, }, ] Number of calls: 1 ❯ src/index.test.ts:78:28