Skip to content

coerce 'expires_in' to be a number #2200

coerce 'expires_in' to be a number

coerce 'expires_in' to be a number #2200

Triggered via pull request November 16, 2025 08:07
Status Failure
Total duration 33s
Artifacts

main.yml

on: pull_request
Matrix: test
publish
publish
Fit to window
Zoom out
Zoom in

Annotations

4 errors
test (24)
Process completed with exit code 1.
src/client/auth.test.ts > OAuth Authorization > exchangeAuthorization > allows for string "expires_in" values: src/client/auth.test.ts#L1162
AssertionError: expected "vi.fn()" to be called with arguments: [ ObjectContaining{…}, …(1) ] Received: 1st vi.fn() call: [ - ObjectContaining { - "href": "https://auth.example.com/token", - }, - ObjectContaining { + "https://auth.example.com/token", + { + "body": URLSearchParams {}, "headers": Headers {}, "method": "POST", }, ] Number of calls: 1 ❯ src/client/auth.test.ts:1162:31
test (18)
Process completed with exit code 1.
src/client/auth.test.ts > OAuth Authorization > exchangeAuthorization > allows for string "expires_in" values: src/client/auth.test.ts#L1162
AssertionError: expected "vi.fn()" to be called with arguments: [ ObjectContaining{…}, …(1) ] Received: 1st vi.fn() call: @@ -1,20 +1,45 @@ [ - ObjectContaining { - "href": "https://auth.example.com/token", + "https://auth.example.com/token", + { + "body": URLSearchParams { + Symbol(query): [ + "grant_type", + "authorization_code", + "code", + "code123", + "code_verifier", + "verifier123", + "redirect_uri", + "http://localhost:3000/callback", + "client_id", + "client123", + "client_secret", + "secret123", + "resource", + "https://api.example.com/mcp-server", + ], + Symbol(context): null, }, - ObjectContaining { "headers": Headers { Symbol(headers list): HeadersList { "cookies": null, Symbol(headers map): Map { "content-type" => { "name": "Content-Type", "value": "application/x-www-form-urlencoded", }, + "accept" => { + "name": "Accept", + "value": "application/json", + }, }, Symbol(headers map sorted): [ + [ + "accept", + "application/json", + ], [ "content-type", "application/x-www-form-urlencoded", ], ], Number of calls: 1 ❯ src/client/auth.test.ts:1162:31