quoad
Version:
Serenity/JS: Next generation acceptance testing library for modern web applications.
20 lines (15 loc) • 401 B
JavaScript
const
{ configure, StreamReporter } = require('@serenity-js/core'),
{ ChildProcessReporter } = require('@integration/testing-tools'),
{ Given } = require('@cucumber/cucumber');
configure({
crew: [
new ChildProcessReporter(),
new StreamReporter(),
],
})
Given('a passing step', () => {
});
Given('a failing step', () => {
throw new Error('step failed');
});