v3.1.0
๐ What's Changed
The inimum required version of vitest
is now the 1.2.2
.
@codspeed/vitest-plugin
now supports the before*
and after*
hooks from vitest
๐ช
This brings a benchmark authoring experience similar to writing unit and integration tests.
Take a look at the documentation on Database instrumentation to see it in action!
Since this feature is not available yet in the actual vitest
's bench
API, enabling the codspeedPlugin
will now always activate the CodSpeed benchmark runner instead of the default one, even in local environments.
๐ Migration Path
We recommend you create a standalone PR to update the @codspeed/*
dependencies, acknowledge the potential regressions, and merge it to update the baseline on your default branch.
๐ Details
- feat/vitest hooks by @adriencaccia in #32
Full Changelog: v3.0.0...v3.1.0