refactor: adopt graphql-codegen #1465
ci.yml
on: pull_request
Prepare CI
2s
Build
/
Build Linux (electron-builder)
Build
/
Build Windows (electron-builder)
Build
/
Build macOS (electron-builder)
Annotations
9 errors
|
Tests / Run Tests
Process completed with exit code 2.
|
|
Tests / Run Tests:
src/renderer/utils/api/client.ts#L272
Property 'title' does not exist on type '{ __typename?: "App"; } | { __typename?: "Discussion"; number: number; title: string; stateReason?: DiscussionStateReason; isAnswered?: boolean; url: any; author?: ({ ...; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; }); comments: { ...; }; labels?: { ......'.
|
|
Tests / Run Tests:
src/renderer/utils/api/client.ts#L270
Type '{ __typename?: "App"; } | { __typename?: "Discussion"; number: number; title: string; stateReason?: DiscussionStateReason; isAnswered?: boolean; url: any; author?: ({ ...; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; }); comments: { ...; }; labels?: { ......' is not assignable to type 'Discussion'.
|
|
Tests / Run Tests:
src/renderer/utils/api/__mocks__/response-mocks.ts#L437
Type 'DiscussionComments' is not assignable to type '{ __typename?: "DiscussionCommentConnection"; totalCount: number; nodes?: ({ __typename?: "DiscussionComment"; replies: { __typename?: "DiscussionCommentConnection"; nodes?: ({ __typename?: "DiscussionComment"; } & { ...; })[]; }; } & { ...; })[]; }'.
|
|
Tests / Run Tests:
src/renderer/utils/api/__mocks__/response-mocks.ts#L431
Object literal may only specify known properties, and 'login' does not exist in type '({ __typename?: "Bot"; } & { ' $fragmentRefs'?: { AuthorFields_Bot_Fragment: AuthorFields_Bot_Fragment; }; }) | ({ __typename?: "EnterpriseUserAccount"; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; }) | ({ ...; } & { ...; })'.
|
|
Tests / Run Tests:
src/renderer/utils/api/__mocks__/response-mocks.ts#L428
Type '"OPEN"' is not assignable to type 'DiscussionStateReason'.
|
|
Tests / Run Tests:
src/renderer/utils/api/__mocks__/response-mocks.ts#L12
'GraphQLSearch' is declared but never used.
|
|
Tests / Run Tests:
src/renderer/utils/api/__mocks__/response-mocks.ts#L12
Module '"../../../typesGitHub"' has no exported member 'GraphQLSearch'.
|
|
Tests / Run Tests:
src/renderer/utils/api/__mocks__/response-mocks.ts#L7
'Discussion' is declared but never used.
|