MCPcopy Create free account
hub / github.com/observablehq/framework / readCacheFile

Method readCacheFile

test/deploy-test.ts:166–172  ·  view source on GitHub ↗
(sourceRoot: string, path: string)

Source from the content-addressed store, hash-verified

164 }
165
166 readCacheFile(sourceRoot: string, path: string): Promise<string> {
167 if (path === "_build.json") {
168 if (this.buildManifest) return Promise.resolve(JSON.stringify(this.buildManifest));
169 throw Object.assign(new Error("no build manifest configured for this test"), {code: "ENOENT"});
170 }
171 throw Object.assign(new Error("non-manifest cache files aren't available in tests"), {code: "ENOENT"});
172 }
173}
174
175// This test should have exactly one index.md in it, and nothing else; that one

Callers 1

markDeployUploadedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected