Skip to content

test: add sdk integration tests for core flows #6

test: add sdk integration tests for core flows

test: add sdk integration tests for core flows #6

Triggered via pull request March 30, 2026 15:48
Status Failure
Total duration 57s
Artifacts

integration_tests.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
test
Process completed with exit code 1.
__tests__/pkce.test.ts > PkceRequiredTest > test_missing_code_challenge_rejected: __tests__/pkce.test.ts#L227
AssertionError: expected 'INTERACTION' not to be 'INTERACTION' // Object.is equality ❯ __tests__/pkce.test.ts:227:33
__tests__/extraProperties.test.ts > ExtraPropertiesTest > test_properties_at_token_endpoint: __tests__/extraProperties.test.ts#L126
SDKValidationError: Input validation failed: [ { "code": "invalid_type", "expected": "string", "received": "array", "path": [ "tokenRequest", "properties" ], "message": "Expected string, received array" } ] ❯ safeParse src/lib/schemas.ts:49:16 ❯ $do src/funcs/tokenProcess.ts:82:27 ❯ tokenProcess src/funcs/tokenProcess.ts:54:25 ❯ Token.process src/sdk/token.ts:31:36 ❯ __tests__/extraProperties.test.ts:126:45 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { rawValue: { serviceId: '542383091', tokenRequest: { parameters: 'grant_type=authorization_code&code=ryJZUaLeG6DkeOtSnhf-ho9IdYw81FpgDAStlbWx01c&redirect_uri=https%3A%2F%2Fclient.example.com%2Fcallback', clientId: '1248666481', clientSecret: 'exQDxQEIAoElQyMY7rC53FWoU7o3xokB1pvKFKYbP_Sl98onWd1R3DUGZ9m4R9wRJ5KJIeZaLPJWXhpqG7Kdsw', properties: [ { key: 'tenant_id', value: 'acme-corp' } ] } }, rawMessage: 'Input validation failed', pretty: 'Function<pretty>' } Caused by: Caused by: ZodError: [ { "code": "invalid_type", "expected": "string", "received": "array", "path": [ "tokenRequest", "properties" ], "message": "Expected string, received array" } ] ❯ Object.get error [as error] node_modules/zod/v3/types.js:39:31 ❯ ZodEffects.parse node_modules/zod/v3/types.js:114:22 ❯ src/funcs/tokenProcess.ts:84:62 ❯ safeParse src/lib/schemas.ts:47:15 ❯ $do src/funcs/tokenProcess.ts:82:27 ❯ tokenProcess src/funcs/tokenProcess.ts:54:25 ❯ Token.process src/sdk/token.ts:31:36 ❯ __tests__/extraProperties.test.ts:126:45 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'array', path: [ 'tokenRequest', 'properties' ], message: 'Expected string, received array' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'array', path: [ 'tokenRequest', 'properties' ], message: 'Expected string, received array' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { tokenRequest: [ 'Expected string, received array' ] } } }
test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/