(outDir: string)
| 105 | }; |
| 106 | |
| 107 | export const rewriteAndValidatePublishedDocShots = (outDir: string): void => { |
| 108 | syncPublishedDocShots(outDir); |
| 109 | rewritePublishedDocShots(outDir); |
| 110 | const missing = [...getPublishedDocShotRefs(outDir).entries()].filter( |
| 111 | ([ref]) => !existsSync(join(outDir, ref)), |
| 112 | ); |
| 113 | if (missing.length > 0) { |
| 114 | throw new Error( |
| 115 | missing |
| 116 | .map( |
| 117 | ([ref, files]) => |
| 118 | `Missing doc shot ${ref} referenced from ${files.join(', ')}`, |
| 119 | ) |
| 120 | .join('\n'), |
| 121 | ); |
| 122 | } |
| 123 | }; |
no test coverage detected
searching dependent graphs…