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

Function numberSteps

lib/command/dryRun.js:57–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function numberSteps() {
58 let stepIndex = 0
59 event.dispatcher.on(event.test.before, () => {
60 stepIndex = 0
61 })
62 event.dispatcher.prependListener(event.step.before, step => {
63 stepIndex++
64 step.prefix = `${stepIndex}. ${step.prefix || ''}`
65 })
66}
67
68async function printTests(files) {
69 const { default: figures } = await import('figures')

Callers 1

dryRun.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected