MCPcopy Create free account
hub / github.com/angular/dev-infra / fakeNpmPackageQueryRequest

Function fakeNpmPackageQueryRequest

ng-dev/pr/merge/integration.spec.ts:88–95  ·  view source on GitHub ↗

Fakes a NPM package query API request.

(data: Partial<NpmPackageInfo>)

Source from the content-addressed store, hash-verified

86
87 /** Fakes a NPM package query API request. */
88 function fakeNpmPackageQueryRequest(data: Partial<NpmPackageInfo>) {
89 _npmPackageInfoCache[releaseConfig.representativeNpmPackage] = Promise.resolve({
90 'dist-tags': {},
91 versions: {},
92 time: {},
93 ...data,
94 });
95 }
96
97 /**
98 * Mocks a repository branch list API request.

Callers 2

publish-ci.spec.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected