Skip to content

Commit

Permalink
Update SetupAndTeardown.md (#8154)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrfarkas authored and SimenB committed Mar 19, 2019
1 parent 809ab98 commit a5a47f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/SetupAndTeardown.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('Scoped / Nested block', () => {

## Order of execution of describe and test blocks

Jest executes all describe handlers in a test file _before_ it executes any of the actual tests. This is another reason to do setup and teardown in `before*` and `after*` handlers rather in the describe blocks. Once the describe blocks are complete, by default Jest runs all the tests serially in the order they were encountered in the collection phase, waiting for each to finish and be tidied up before moving on.
Jest executes all describe handlers in a test file _before_ it executes any of the actual tests. This is another reason to do setup and teardown inside `before*` and `after*` handlers rather than inside the describe blocks. Once the describe blocks are complete, by default Jest runs all the tests serially in the order they were encountered in the collection phase, waiting for each to finish and be tidied up before moving on.

Consider the following illustrative test file and output:

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-22.x/SetupAndTeardown.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe('Scoped / Nested block', () => {

## Order of execution of describe and test blocks

Jest executes all describe handlers in a test file _before_ it executes any of the actual tests. This is another reason to do setup and teardown in `before*` and `after*` handlers rather in the describe blocks. Once the describe blocks are complete, by default Jest runs all the tests serially in the order they were encountered in the collection phase, waiting for each to finish and be tidied up before moving on.
Jest executes all describe handlers in a test file _before_ it executes any of the actual tests. This is another reason to do setup and teardown inside `before*` and `after*` handlers rather than inside the describe blocks. Once the describe blocks are complete, by default Jest runs all the tests serially in the order they were encountered in the collection phase, waiting for each to finish and be tidied up before moving on.

Consider the following illustrative test file and output:

Expand Down

0 comments on commit a5a47f5

Please sign in to comment.