MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / parseSnapshot

Function parseSnapshot

lib/aria.js:103–113  ·  view source on GitHub ↗
(snapshot)

Source from the content-addressed store, hash-verified

101}
102
103function parseSnapshot(snapshot) {
104 if (!snapshot) return []
105 let parsed
106 try {
107 parsed = yaml.load(snapshot)
108 } catch {
109 return []
110 }
111 if (!Array.isArray(parsed)) return []
112 return parsed.map(yamlItemToNode).filter(n => n !== null)
113}
114
115// ─────────────────────────────────────────────────────────────────
116// STEP 2 · Transform: drop containers that contribute nothing.

Callers 2

compactAriaSnapshotFunction · 0.85
summariesOfFunction · 0.85

Calls 2

filterMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected