MCPcopy Index your code
hub / github.com/deepnote/deepnote / loadSnapshotFile

Function loadSnapshotFile

packages/convert/src/snapshot/lookup.ts:174–178  ·  view source on GitHub ↗
(snapshotPath: string)

Source from the content-addressed store, hash-verified

172 * @returns The parsed DeepnoteSnapshot
173 */
174export 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.

Callers 5

lookup.test.tsFile · 0.90
snapshots.test.tsFile · 0.90
handleSnapshotLoadFunction · 0.90
handleSnapshotMergeFunction · 0.90
loadLatestSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected