Skip to content

fix: make cardNumber, expiration, and CVC optional in schemas #61

fix: make cardNumber, expiration, and CVC optional in schemas

fix: make cardNumber, expiration, and CVC optional in schemas #61

Triggered via push December 14, 2024 17:14
Status Failure
Total duration 1m 27s
Artifacts

test.yaml

on: push
Run integration tests
1m 17s
Run integration tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
tests/integration/hold.test.ts > Can hold a payment: tests/integration/hold.test.ts#L21
AssertionError: expected '' to be '00' // Object.is equality - Expected + Received - 00 ❯ tests/integration/hold.test.ts:21:28
tests/integration/post.test.ts > Can post a payment > Can post a hold: tests/integration/post.test.ts#L20
AssertionError: expected '' to be '00' // Object.is equality - Expected + Received - 00 ❯ tests/integration/post.test.ts:20:26
tests/integration/refund.test.ts > Can refund a payment > Can refund a sale: tests/integration/refund.test.ts#L20
AssertionError: expected '' to be '00' // Object.is equality - Expected + Received - 00 ❯ tests/integration/refund.test.ts:20:26
tests/integration/refund.test.ts > Can refund a payment > Can refund a post: tests/integration/refund.test.ts#L54
AssertionError: expected '' to be '00' // Object.is equality - Expected + Received - 00 ❯ tests/integration/refund.test.ts:54:28
tests/integration/sale.test.ts > Can make a payment > Can make a payment: tests/integration/sale.test.ts#L17
AssertionError: expected '' to be '00' // Object.is equality - Expected + Received - 00 ❯ tests/integration/sale.test.ts:17:28
tests/integration/search.test.ts > Can search a payment: tests/integration/search.test.ts#L20
AssertionError: expected '' to be '00' // Object.is equality - Expected + Received - 00 ❯ tests/integration/search.test.ts:20:28
tests/integration/vault.test.ts > DataVault > Can create a DataVault token: tests/integration/vault.test.ts#L16
AssertionError: expected '99' to be '00' // Object.is equality - Expected + Received - 00 + 99 ❯ tests/integration/vault.test.ts:16:28
tests/integration/vault.test.ts > DataVault > Can make a payment with a DataVault token: src/azul-api/data-vault/data-vault.ts#L61
ZodError: [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "dataVaultToken" ], "message": "Required" } ] ❯ Object.get error [as error] node_modules/zod/lib/index.mjs:587:31 ❯ ZodObject.parse node_modules/zod/lib/index.mjs:692:22 ❯ DataVault.sale src/azul-api/data-vault/data-vault.ts:61:30 ❯ tests/integration/vault.test.ts:22:37 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'dataVaultToken' ], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'dataVaultToken' ], message: 'Required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { dataVaultToken: [ 'Required' ] } } }
tests/integration/vault.test.ts > DataVault > Can delete a DataVault token: tests/integration/vault.test.ts#L36
AssertionError: expected '99' to be '00' // Object.is equality - Expected + Received - 00 + 99 ❯ tests/integration/vault.test.ts:36:28
tests/integration/vault.test.ts > DataVault > After deleting a DataVault token, it should not be possible to make a payment with it: src/azul-api/data-vault/data-vault.ts#L61
ZodError: [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "dataVaultToken" ], "message": "Required" } ] ❯ Object.get error [as error] node_modules/zod/lib/index.mjs:587:31 ❯ ZodObject.parse node_modules/zod/lib/index.mjs:692:22 ❯ DataVault.sale src/azul-api/data-vault/data-vault.ts:61:30 ❯ tests/integration/vault.test.ts:40:37 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'dataVaultToken' ], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'dataVaultToken' ], message: 'Required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { dataVaultToken: [ 'Required' ] } } }
Run integration tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636