Skip to content

Commit ef25c46

Browse files
authored
docs: changed 'before' and 'after' ---> 'beforeAll' and 'afterAll' (#12065)
1 parent 7039cb1 commit ef25c46

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/SetupAndTeardown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('city database has San Juan', () => {
6363

6464
## Scoping
6565

66-
By default, the `before` and `after` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `before` and `after` blocks only apply to the tests within that `describe` block.
66+
By default, the `beforeAll` and `afterAll` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `beforeAll` and `afterAll` blocks only apply to the tests within that `describe` block.
6767

6868
For example, let's say we had not just a city database, but also a food database. We could do different setup for different tests:
6969

website/versioned_docs/version-25.x/SetupAndTeardown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('city database has San Juan', () => {
6363

6464
## Scoping
6565

66-
By default, the `before` and `after` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `before` and `after` blocks only apply to the tests within that `describe` block.
66+
By default, the `beforeAll` and `afterAll` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `beforeAll` and `afterAll` blocks only apply to the tests within that `describe` block.
6767

6868
For example, let's say we had not just a city database, but also a food database. We could do different setup for different tests:
6969

website/versioned_docs/version-26.x/SetupAndTeardown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('city database has San Juan', () => {
6363

6464
## Scoping
6565

66-
By default, the `before` and `after` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `before` and `after` blocks only apply to the tests within that `describe` block.
66+
By default, the `beforeAll` and `afterAll` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `beforeAll` and `afterAll` blocks only apply to the tests within that `describe` block.
6767

6868
For example, let's say we had not just a city database, but also a food database. We could do different setup for different tests:
6969

website/versioned_docs/version-27.0/SetupAndTeardown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('city database has San Juan', () => {
6363

6464
## Scoping
6565

66-
By default, the `before` and `after` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `before` and `after` blocks only apply to the tests within that `describe` block.
66+
By default, the `beforeAll` and `afterAll` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `beforeAll` and `afterAll` blocks only apply to the tests within that `describe` block.
6767

6868
For example, let's say we had not just a city database, but also a food database. We could do different setup for different tests:
6969

website/versioned_docs/version-27.1/SetupAndTeardown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('city database has San Juan', () => {
6363

6464
## Scoping
6565

66-
By default, the `before` and `after` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `before` and `after` blocks only apply to the tests within that `describe` block.
66+
By default, the `beforeAll` and `afterAll` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `beforeAll` and `afterAll` blocks only apply to the tests within that `describe` block.
6767

6868
For example, let's say we had not just a city database, but also a food database. We could do different setup for different tests:
6969

website/versioned_docs/version-27.2/SetupAndTeardown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test('city database has San Juan', () => {
6363

6464
## Scoping
6565

66-
By default, the `before` and `after` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `before` and `after` blocks only apply to the tests within that `describe` block.
66+
By default, the `beforeAll` and `afterAll` blocks apply to every test in a file. You can also group tests together using a `describe` block. When they are inside a `describe` block, the `beforeAll` and `afterAll` blocks only apply to the tests within that `describe` block.
6767

6868
For example, let's say we had not just a city database, but also a food database. We could do different setup for different tests:
6969

0 commit comments

Comments
 (0)