MCPcopy
hub / github.com/gitify-app/gitify / createGraphQLResponseError

Function createGraphQLResponseError

src/renderer/utils/api/errors.test.ts:182–199  ·  view source on GitHub ↗
(
  message: string,
)

Source from the content-addressed store, hash-verified

180});
181
182function createGraphQLResponseError(
183 message: string,
184): GraphqlResponseError<unknown> {
185 return new GraphqlResponseError(
186 {
187 method: 'POST',
188 url: 'https://api.github.com/graphql',
189 headers: {},
190 },
191 {},
192 {
193 data: {},
194 errors: [{ message }] as unknown as NonNullable<
195 GraphqlResponseError<unknown>['errors']
196 >,
197 },
198 );
199}

Callers 1

errors.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected