Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
refactor(benchmark): simplify provider contract to a default export master
Address review feedback on the pluggable benchmark provider API. The initial design mirrored the coverage provider (a `getProvider` factory plus a `BenchmarkProviderModule` wrapper), which was a special case that benchmarks — running only in tests — don't need. - Drop `BenchmarkProviderModule` and `getProvider`: a custom provider module now default-exports a `BenchmarkProvider` directly. - Reuse the existing `TestModuleRunner` interface instead of the bespoke `BenchmarkProviderLoader`. - Remove the `TestRunner.runBenchmarks` override hook, now redundant with the provider API, and inline `tinybench.run()` in the default provider.
Author Guillaume Lagrange Date (Jul 22, 2026, 8:37 AM UTC) Commit bbcdb4d9 bbcdb4d97df214a67a43bf583ca7fbc524f40f57 Parent 3dbe73a9 3dbe73a9ef9fff2cae616ff67b8fee488445b88d