(snapshotPath: string)
| 172 | * @returns The parsed DeepnoteSnapshot |
| 173 | */ |
| 174 | export async function loadSnapshotFile(snapshotPath: string): Promise<DeepnoteSnapshot> { |
| 175 | const content = await fs.readFile(snapshotPath, 'utf-8') |
| 176 | const parsed = parse(content) |
| 177 | return deepnoteSnapshotSchema.parse(parsed) |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Gets the snapshot directory path for a source file. |
no outgoing calls
no test coverage detected