Skip to content
New issue

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

Allow calling skip programmatically in bechmarks #6901

Open
4 tasks done
mskonovalov opened this issue Nov 12, 2024 · 0 comments
Open
4 tasks done

Allow calling skip programmatically in bechmarks #6901

mskonovalov opened this issue Nov 12, 2024 · 0 comments

Comments

@mskonovalov
Copy link

mskonovalov commented Nov 12, 2024

Clear and concise description of the problem

#3966
The functionality has been added for tests, which is great.
Would be nice to have the same thing for benchmarks as well

Suggested solution

bench('math is hard', ({ skip }) => {
    skip();
    expect(2 + 2).toBe(5);
  });

Add skip functionality for benchmarks

Alternative

No response

Additional context

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant