Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
testLifecycle(stage: TestEvent, label: string): void {
switch (stage) {
case TestEvent.AfterStepAction:
this.logger.info(`---> ${label}()`)
break
case TestEvent.BeforeStep:
this.logger.info('')
this.logger.info(`===> Step '${label}'`)
break
case TestEvent.AfterStep:
this.logger.info(`---> Step '${label}' finished`)
break
case TestEvent.StepSkipped:
this.logger.info(`---- Step '${label}' skipped`)
break
case TestEvent.StepFailed:
this.logger.error(`xxxx Step '${label}' failed`)
break
}