We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
describe.skipIf(skipBenchmarks)('performance', () => { bench('100 items should take not long', () => {
Produces error Error: bench() is only available in benchmark mode.
Error:
is only available in benchmark mode.
const skipBenchmarks = !process.env.SKIP_BENCHMARKS || process.env.SKIP_BENCHMARKS !== 'false'; console.log(skipBenchmarks); // prints true describe.skipIf(skipBenchmarks)('performance', () => { bench('100 items should take not long', () => { console.log('benchmark'); }); }); ### System Info ```shell Linux, Ubuntu 20.04 vitest 2.1.1 node 20.17
yarn
The text was updated successfully, but these errors were encountered:
actually it seems that skipping all individual benchmarks does not work either, and it seems the only option is to move it in a separate file :(((
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Produces error
Error:
bench()is only available in benchmark mode.
Reproduction
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: