All files / src/lib/query-key/query-key-group index.ts

90.9% Statements 10/11
100% Branches 2/2
33.33% Functions 2/6
90.9% Lines 10/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 121x 1x 1x 1x   1x 1x 1x 1x 12x 1x  
export const groupKeys = {
  all: ['group'] as const,
  lists: () => [...groupKeys.all, 'list'] as const,
  list: (filters: { keyword?: string; cursor?: number; size: number }) =>
    [...groupKeys.lists(), filters] as const,
  myGroups: () => ['myGroups'] as const,
  myGroupsList: (type: 'current' | 'myPost' | 'past') => [...groupKeys.myGroups(), type] as const,
  detail: (groupId: string) => [...groupKeys.all, groupId] as const,
  joinRequests: (groupId: string, status: string = 'PENDING') =>
    ['joinRequests', groupId, status] as const,
};