UNPKG

@amiceli/vitest-cucumber

Version:

vitest tools to use Gherkin feature in unit tests

10 lines (9 loc) 380 B
import { getVitestCucumberConfiguration } from '../vitest/configuration'; import { BrowserFeatureFileReader } from './readfile'; export async function loadFeature(featureFilePath, options) { const [feature] = await BrowserFeatureFileReader.fromPath({ featureFilePath, options: getVitestCucumberConfiguration(options), }).parseFile(); return feature; }