-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Ability to skip tests in beforeEach #1208
Comments
I would also like to know how to do this. I played with it. If I throw an error, it stops all test execution. If I set the this.currentTest.pending flag to true, it still executes the test. |
For anyone finding this issue: this little snippet of code should help you work around the issue:
|
you can also just use this.skip ie
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a bunch of tests that we only run optionally based on the environment, we use various ways to do if (build time flags, just putting tests inside an if), but the best place for us to do it would be inside
beforeEach
, it would be nice if there was a way to provide something to done that indicated the test should be skippedCan try coming up with a patch if that seems like something likely to be merged?
The text was updated successfully, but these errors were encountered: