Closed polRk closed 1 year ago
We don't have any plans to support vitest benchmarks with Wallaby but Wallaby should not error in this case.
As of Wallaby v1.0.1343, any vitest bench
definitions will be skipped by Wallaby.
Our thinking is that benchmarks can be expensive to run and in the context of Wallaby running your tests, they don't actually provide the kind of instant validation/feedback that is useful in the context of Wallaby executing your code. This is most likely why there is a separate run mode in vitest. Additionally, there are no assertions that are validated within the benchmarks and at this point in time vitest does not contain any way of validating the performance of your benchmarks.
If you really want Wallaby to report on test execution times (similar to bench
), you can use the it
function (instead of bench
function) and Wallaby will report on the total test execution time. You could also measure and have assertion of test execution time within such a function if it is important to you.
Issue description or question
Go an error if using vitest bench
Wallaby diagnostics report