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

Function metaChain

lib/plugin/junitReporter.js:224–235  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

222}
223
224function metaChain(step) {
225 const chain = []
226 let meta = step && step.metaStep
227 while (meta) {
228 chain.unshift({ step: meta, key: meta })
229 meta = meta.metaStep
230 }
231 if (!chain.length && step && step.parent && step.parent.title) {
232 chain.push({ step: { title: step.parent.title, status: step.status }, key: `meta:${step.parent.title}` })
233 }
234 return chain
235}
236
237function stepLogLine(entry) {
238 const indent = ' '.repeat(entry.depth)

Callers 1

flattenStepsFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected