UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

14 lines (12 loc) 490 B
import type { TagFilterItem, TagFilters } from '../../vitest/configuration'; export declare abstract class Taggable { tags: Set<string>; /** * Simple matching filter mostly following the cucumber expression tag rules, * e.g. `[["alpha", "beta"], "vitests", "another"]` * will be equivalent to: * (`@alpha` and `@beta`) or `@vitests` or `@another` */ matchTags(filterItems: TagFilterItem[]): boolean; shouldBeCalled(options: TagFilters): boolean; }