MCPcopy
hub / github.com/npmx-dev/npmx.dev / createRepoInfo

Function createRepoInfo

test/unit/server/utils/readme.spec.ts:25–34  ·  view source on GitHub ↗
(overrides?: Partial<RepositoryInfo>)

Source from the content-addressed store, hash-verified

23
24// Helper to create mock repository info
25function createRepoInfo(overrides?: Partial<RepositoryInfo>): RepositoryInfo {
26 return {
27 provider: 'github',
28 owner: 'test-owner',
29 repo: 'test-repo',
30 rawBaseUrl: 'https://raw.githubusercontent.com/test-owner/test-repo/HEAD',
31 blobBaseUrl: 'https://github.com/test-owner/test-repo/blob/HEAD',
32 ...overrides,
33 }
34}
35
36describe('Playground Link Extraction', () => {
37 describe('StackBlitz', () => {

Callers 1

readme.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected