Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(([ args, props ]) =>
actor.attemptsTo(
Check
.whether(FileExists.at(this.pathToArtifact), equals(false))
.andIfSo(TerminateFlow.because(
`I couldn't access the Serenity BDD CLI at ${ this.pathToArtifact.value }. ` +
`Did you remember to run \`serenity-bdd update\`?`,
)),
// todo: check if reports exist before invoking the jar?
Spawn.the(new JavaExecutable(), ...props, '-jar', this.pathToArtifact.value, ...args),
),
);