UNPKG

@serenity-js/jasmine

Version:

Serenity/JS test runner adapter for Jasmine, enabling the use of the Screenplay Pattern in Jasmine-based test suites and leveraging Serenity/JS reporting capabilities

14 lines (11 loc) 294 B
import type { SpecFilter } from './SpecFilter.js'; /** * @package */ export class CustomFunctionSpecFilter implements SpecFilter { constructor(private readonly fn: (specName: string) => boolean) { } matches(specName: string): boolean { return this.fn(specName); } }