(filePath)
| 168 | } |
| 169 | |
| 170 | async function loadSnapshotsFromFile(filePath) { |
| 171 | const resolvedPath = path.resolve(filePath); |
| 172 | if (!(await pathExists(resolvedPath))) { |
| 173 | throw new Error(`Observed usage file not found: ${resolvedPath}`); |
| 174 | } |
| 175 | |
| 176 | const parsedItems = parseUsageContent(await readText(resolvedPath)); |
| 177 | const snapshots = []; |
| 178 | parsedItems.forEach((item) => collectSnapshots(item, resolvedPath, snapshots)); |
| 179 | return snapshots; |
| 180 | } |
| 181 | |
| 182 | function createObservedUsageChecks(summary) { |
| 183 | const checks = []; |
no test coverage detected