MCPcopy Create free account
hub / github.com/dailydotdev/apps / graphqlError

Function graphqlError

packages/shared/src/lib/streakViewQueue.spec.ts:10–15  ·  view source on GitHub ↗
(code?: string)

Source from the content-addressed store, hash-verified

8const at = new Date('2026-01-12T21:30:00+01:00');
9
10const graphqlError = (code?: string) => ({
11 response: {
12 data: null,
13 errors: [{ message: 'no', ...(code && { extensions: { code } }) }],
14 },
15});
16
17describe('isStreakViewCreditable', () => {
18 it('should credit a view from the same local day', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected