Skip to content

feat: support GQL changes #350

feat: support GQL changes

feat: support GQL changes #350

Triggered via pull request February 22, 2025 10:25
Status Failure
Total duration 3m 9s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
src/actions/account.test.ts > Given the Account query actions > When invoking the 'fetchAccount' action > Then it should not fail w/ a GQL BadRequest error: packages/client/src/clients.ts#L52
InvariantError: Expected a value, got: [GraphQL] Unknown field "array" on type "ArrayKeyValue". [GraphQL] Unknown field "dictionary" on type "DictionaryKeyValue". [GraphQL] Unknown field "boolean" on type "BooleanKeyValue". [GraphQL] Unknown field "bigDecimal" on type "BigDecimalKeyValue". [GraphQL] Unknown field "address" on type "AddressKeyValue". [GraphQL] Unknown field "int" on type "IntKeyValue". [GraphQL] Unknown field "string" on type "StringKeyValue". [GraphQL] Unknown field "data" on type "RawKeyValue". [GraphQL] Unknown field "optionalInt" on type "IntNullableKeyValue". ❯ Module.p ../types/src/helpers/invariant.ts:17:11 ❯ takeValue src/clients.ts:52:3 ❯ ResultAsync.<anonymous> ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:127:33 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:57 ❯ __awaiter ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:123:60 ❯ src/actions/account.test.ts:12:22
src/actions/accountManager.test.ts > Given a new Lens Account: packages/client/src/actions/accountManager.test.ts#L41
InvariantError: Expected result to be Ok: [GraphQL] Unknown field "dictionary" on type "DictionaryKeyValue". [GraphQL] Unknown field "array" on type "ArrayKeyValue". [GraphQL] Unknown field "boolean" on type "BooleanKeyValue". [GraphQL] Unknown field "data" on type "RawKeyValue". [GraphQL] Unknown field "bigDecimal" on type "BigDecimalKeyValue". [GraphQL] Unknown field "string" on type "StringKeyValue". [GraphQL] Unknown field "int" on type "IntKeyValue". [GraphQL] Unknown field "optionalInt" on type "IntNullableKeyValue". [GraphQL] Unknown field "address" on type "AddressKeyValue". ❯ Module.$ ../types/src/helpers/assertions.ts:31:11 ❯ src/actions/accountManager.test.ts:41:5
src/actions/notifications.test.ts > Given the 'fetchNotifications' action > When invoked > Then it should not fail w/ a GQL BadRequest error: packages/client/src/actions/notifications.test.ts#L12
InvariantError: Expected result to be Ok: [GraphQL] Unknown field "address" on type "AddressKeyValue". [GraphQL] Unknown field "optionalInt" on type "IntNullableKeyValue". [GraphQL] Unknown field "boolean" on type "BooleanKeyValue". [GraphQL] Unknown field "array" on type "ArrayKeyValue". [GraphQL] Unknown field "int" on type "IntKeyValue". [GraphQL] Unknown field "dictionary" on type "DictionaryKeyValue". [GraphQL] Unknown field "bigDecimal" on type "BigDecimalKeyValue". [GraphQL] Unknown field "string" on type "StringKeyValue". [GraphQL] Unknown field "data" on type "RawKeyValue". ❯ Module.$ ../types/src/helpers/assertions.ts:31:11 ❯ src/actions/notifications.test.ts:12:7
src/actions/onboarding.test.ts > Given an onboarding user > When switching to the newly created account > Then it should be authenticated: packages/client/src/actions/onboarding.test.ts#L48
InvariantError: Expected result to be Ok: [GraphQL] Unknown field "boolean" on type "BooleanKeyValue". [GraphQL] Unknown field "array" on type "ArrayKeyValue". [GraphQL] Unknown field "optionalInt" on type "IntNullableKeyValue". [GraphQL] Unknown field "dictionary" on type "DictionaryKeyValue". [GraphQL] Unknown field "string" on type "StringKeyValue". [GraphQL] Unknown field "data" on type "RawKeyValue". [GraphQL] Unknown field "bigDecimal" on type "BigDecimalKeyValue". [GraphQL] Unknown field "address" on type "AddressKeyValue". [GraphQL] Unknown field "int" on type "IntKeyValue". ❯ Module.$ ../types/src/helpers/assertions.ts:31:11 ❯ src/actions/onboarding.test.ts:48:7
src/actions/post.test.ts > Given the 'post' action > When creating a Post > Then it should return the expected TransactionRequest: packages/client/src/actions/post.test.ts#L16
InvariantError: Expected result to be Ok: [GraphQL] Unknown field "data" on type "RawKeyValue". [GraphQL] Unknown field "string" on type "StringKeyValue". [GraphQL] Unknown field "optionalInt" on type "IntNullableKeyValue". [GraphQL] Unknown field "int" on type "IntKeyValue". [GraphQL] Unknown field "bigDecimal" on type "BigDecimalKeyValue". [GraphQL] Unknown field "dictionary" on type "DictionaryKeyValue". [GraphQL] Unknown field "address" on type "AddressKeyValue". [GraphQL] Unknown field "boolean" on type "BooleanKeyValue". [GraphQL] Unknown field "array" on type "ArrayKeyValue". ❯ Module.$ ../types/src/helpers/assertions.ts:31:11 ❯ src/actions/post.test.ts:16:7
src/actions/posts.test.ts > Given the Post query actions > When invoking the 'fetchPost' action > Then it should not fail w/ a GQL BadRequest error: packages/client/src/clients.ts#L52
InvariantError: Expected a value, got: [GraphQL] Unknown field "optionalInt" on type "IntNullableKeyValue". [GraphQL] Unknown field "int" on type "IntKeyValue". [GraphQL] Unknown field "array" on type "ArrayKeyValue". [GraphQL] Unknown field "dictionary" on type "DictionaryKeyValue". [GraphQL] Unknown field "bigDecimal" on type "BigDecimalKeyValue". [GraphQL] Unknown field "data" on type "RawKeyValue". [GraphQL] Unknown field "string" on type "StringKeyValue". [GraphQL] Unknown field "boolean" on type "BooleanKeyValue". [GraphQL] Unknown field "address" on type "AddressKeyValue". ❯ Module.p ../types/src/helpers/invariant.ts:17:11 ❯ takeValue src/clients.ts:52:3 ❯ ResultAsync.<anonymous> ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:127:33 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:57 ❯ __awaiter ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ ../../node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:123:60 ❯ src/actions/posts.test.ts:12:22
Verify / Test
Process completed with exit code 1.