MCPcopy Create free account
hub / github.com/47ng/nuqs / createPR

Function createPR

packages/scripts/lib/commit-graph.test.ts:283–292  ·  view source on GitHub ↗
(
  overrides: Partial<PR> & { number: number; title: string }
)

Source from the content-addressed store, hash-verified

281
282// Helper to create a minimal PR object for testing.
283function createPR(
284 overrides: Partial<PR> & { number: number; title: string }
285): PR {
286 return {
287 author: null,
288 participants: { nodes: [] },
289 closingIssuesReferences: { edges: [] },
290 ...overrides
291 }
292}
293
294describe('collectContributors', () => {
295 it('returns empty array when no PRs', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected