-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Doc- clarify the describe.skip
behaviour
#12332
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12332 +/- ##
==========================================
- Coverage 67.25% 67.25% -0.01%
==========================================
Files 330 330
Lines 17354 17354
Branches 5073 5073
==========================================
- Hits 11672 11671 -1
- Misses 5650 5651 +1
Partials 32 32
Continue to review full report at Codecov.
|
@SimenB waiting for your thoughts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
@@ -398,7 +398,7 @@ test('will not be ran', () => { | |||
|
|||
Also under the alias: `xdescribe(name, fn)` | |||
|
|||
You can use `describe.skip` if you do not want to run a particular describe block: | |||
You can use `describe.skip` if you do not want to run the tests of a particular described block: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use `describe.skip` if you do not want to run the tests of a particular described block: | |
You can use `describe.skip` if you do not want to run the tests of a particular `describe` block: |
@@ -416,7 +416,7 @@ describe.skip('my other beverage', () => { | |||
}); | |||
``` | |||
|
|||
Using `describe.skip` is often a cleaner alternative to temporarily commenting out a chunk of tests. | |||
Using `describe.skip` is often a cleaner alternative to temporarily commenting out a chunk of tests. Beware that the `describe` block will still be run. If you have some setup that should be skipped, do it in a `beforeAll` or `beforeEach` block. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using `describe.skip` is often a cleaner alternative to temporarily commenting out a chunk of tests. Beware that the `describe` block will still be run. If you have some setup that should be skipped, do it in a `beforeAll` or `beforeEach` block. | |
Using `describe.skip` is often a cleaner alternative to temporarily commenting out a chunk of tests. Beware that the `describe` block will still run. If you have some setup that also should be skipped, do it in a `beforeAll` or `beforeEach` block. |
closing this one @SimenB as i pulled a new one for this |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
@SimenB in reference to #12164, you said you had some changes in mind, so i just pushed one change in the main doc,
lets discuss the changes and finally put the rest in other docs and complete the PR