()
| 55 | } |
| 56 | |
| 57 | function 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 | |
| 68 | async function printTests(files) { |
| 69 | const { default: figures } = await import('figures') |