You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eec7ec7
Browse filesBrowse the repository at this point in the historyBrowse files
feat(vitest-plugin): use the vitest 5 benchmark provider API
Vitest 5 exposes a `benchmark.provider` option that hands a plugin the
raw benchmark functions and their hooks directly. Wire the V5 backend to
register a provider through `test.benchmark.provider` and add the
provider itself, which runs analysis and walltime modes off the
registrations it receives.
Drop the previous V5 seam that patched the static
`TestRunner.runBenchmarks` and `Bench.prototype.add` from a setup file,
along with the `WeakMap` fn-capture it needed to work around tinybench
v6's private `fn` field. The provider gets the fn and options as data, so
none of that interception remains. The legacy (Vitest 3/4) runner path is
untouched.
Point the rollup build and the config-injection test at the new provider
entry.
Refs COD-2931
0 commit comments