@serenity-js/cucumber
Version:
Serenity/JS test runner adapter for seamless integration with any version of Cucumber.js, facilitating BDD-style test automation and leveraging Serenity/JS reporting capabilities
15 lines (11 loc) • 538 B
text/typescript
import type { Dependencies } from './Dependencies';
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export = function ({ serenity, notifier, resultMapper, loader, cucumber, cache }: Dependencies) {
const adapter = require('./cucumber-0'); // eslint-disable-line @typescript-eslint/no-var-requires
cucumber.defineSupportCode(support =>
adapter({ serenity, notifier, resultMapper, loader, cucumber, cache }).call(support)
);
return function (): void {
// no-op
};
};