- The
Givenbuilder now receives a plain handle{ step, test }in both TypeScript and ReScript.stepregisters every scenario operation — the keywords (When,Then,Alors, …) belong to the feature file, not the code — andtestis the running VitestTestContext, so teardown istest.onTestFinished. The any-name proxy and the trailingTestContextargument are gone; the exported type isHandle(previouslyContext). - In ReScript,
givennow binds a pattern with no captures;given1andgiven2bind one and two.givenno longer types the test context into the capture slot. - Removed the deprecated
vitest-bddnames:vitestBdd,VitestBddOptionsand the ReScriptVitestBddmodule. UseepureVitest,EpureVitestOptionsandEpureVitest. vitest-bddstays at 1.1.0 and is not published for 2.0.0. Install@epure/vitestto upgrade.
- A ReScript
given,given1orgiven2builder can beasync. The binding typed the builder's answer asunit, so anasyncbuilder'spromise<unit>was rejected, though the runner has always awaited it.
- Renamed from
vitest-bddto@epure/vitest.vitest-bdd1.1.0 re-exports@epure/vitest, so existing code keeps working. - Renamed plugin API to
epureVitestandEpureVitestOptions. - Renamed ReScript module to
EpureVitest. - Kept deprecated TypeScript and ReScript aliases for migration.
- Moved the repository to epuremethod/vitest.
- Added the epurejs.dev documentation build.
- Added plural support:
I tap 10 timesmatchesI tap {number} time(s). - Added YAML scenarios:
.yamlfiles are translated into source-mapped suites, andGivenregisters their scenario and background handlers with Vitest's test context. - Mapped a ReScript test whose name
rescript formatmoved to the line afterit(; such tests printedNo source mappingand reported failures against the wrong line. - Kept the package without an
exportsmap, as since 0.6.1, so ReScript projects that compile out of source still resolve its modules.
- Fixed a rare
resolveIdbug when loaded from CommonJS.
- Upgraded tests to ReScript 12.
- Released the first stable version.
- Added default
tsxandjsxstep-file discovery.
- Removed package exports to support ReScript projects with different suffix settings.
- Added
toRecords,toNumbers, andtoStrings. - Added concurrent scenarios, enabled by default.
- Added the Vitest test context to
Givenbuilders. - Added complete ReScript bindings for Vitest assertions.
- Kept Vitest external to the bundle to preserve concurrency and test context.
- Removed accidental array-step support.
- Added array-step support.
- Added ReScript unit tests with source maps.
- Added configurable Markdown extensions and
.mdxsupport.
- Added Gherkin code blocks in Markdown.
- Added basic ReScript step definitions.
- Added async and concurrent scenarios.
- Fixed negative and scientific number parsing.
- Added the initial Vite plugin.