| 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 |