@epure/vitest has 10 recorded weekly downloads on npm, a decrease of 37.5% over the past 30 days.
It ranks #1920 of 2,251 tracked npm listings by weekly downloads.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About @epure/vitest
@epure/vitest
Gherkin contracts and structured YAML fixtures run by Vitest, with typed steps for TypeScript and ReScript.
@epure/vitest is the new name of vitest-bdd. See Migration from vitest-bdd.
• Guide • API reference • npm • épure method
Install
Configure Vitest
epureVitest translates feature files, Gherkin code fences in Markdown, and structured YAML fixtures into Vitest suites in memory. It does not write generated test files to disk.
YAML fixtures
Include .yaml files in Vitest when scenarios are structured examples rather than prose. epureVitest compiles every .yaml file Vitest loads; the test.include glob controls which fixtures are tests.
Register each given in calculator.test.yaml.ts, calculator.test.steps.ts, or a shared steps.ts beside the fixture:
Each example becomes a source-mapped Vitest test. A scenario's given overrides background.given; one of them is required. The remaining fields occupy the parameter position in the same Given API used by features: the handle first, scenario data second. The handle carries step, which registers a scenario operation, and test, the running Vitest test.
Write a contract
Place its steps beside it:
Each Given builder creates private scenario state. The operations it registers through step close over that state, so scenarios can run concurrently without a shared World. The feature file keeps its own words — When, Then, Alors — while the code has one: step. The handle's test is the running Vitest test, for test.onTestFinished teardown.
ReScript
Open the canonical EpureVitest module:
The package also provides typed Vitest suites, hooks, modes, and assertions. See the ReScript guide.
Migration from vitest-bdd
| Former name | Canonical name |
| package vitest-bdd | package @epure/vitest | | vitestBdd() | epureVitest() | | VitestBddOptions | EpureVitestOptions | | ReScript module VitestBdd | ReScript module EpureVitest |
The former names were deprecated aliases in 1.1.0 and are removed in 2.0.0.
Development
See CHANGELOG.md for release history.
Description from the npm listing.
- vitest
- bdd
- gherkin
- cucumber
- test-runner
- vitest-plugin
- step-definitions
- feature-files
- rescript
- typescript
- testing
Where @epure/vitest sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm Testing plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@epure/vitest. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.