diff --git a/docs/SetupAndTeardown.md b/docs/SetupAndTeardown.md index d835a46c82e0..a24288001b2e 100644 --- a/docs/SetupAndTeardown.md +++ b/docs/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-25.x/SetupAndTeardown.md b/website/versioned_docs/version-25.x/SetupAndTeardown.md index 8d7a77020178..a45b49cb0bfe 100644 --- a/website/versioned_docs/version-25.x/SetupAndTeardown.md +++ b/website/versioned_docs/version-25.x/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-26.x/SetupAndTeardown.md b/website/versioned_docs/version-26.x/SetupAndTeardown.md index 8d7a77020178..a45b49cb0bfe 100644 --- a/website/versioned_docs/version-26.x/SetupAndTeardown.md +++ b/website/versioned_docs/version-26.x/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-27.x/SetupAndTeardown.md b/website/versioned_docs/version-27.x/SetupAndTeardown.md index d835a46c82e0..a24288001b2e 100644 --- a/website/versioned_docs/version-27.x/SetupAndTeardown.md +++ b/website/versioned_docs/version-27.x/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-28.x/SetupAndTeardown.md b/website/versioned_docs/version-28.x/SetupAndTeardown.md index d835a46c82e0..a24288001b2e 100644 --- a/website/versioned_docs/version-28.x/SetupAndTeardown.md +++ b/website/versioned_docs/version-28.x/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-29.0/SetupAndTeardown.md b/website/versioned_docs/version-29.0/SetupAndTeardown.md index d835a46c82e0..a24288001b2e 100644 --- a/website/versioned_docs/version-29.0/SetupAndTeardown.md +++ b/website/versioned_docs/version-29.0/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-29.1/SetupAndTeardown.md b/website/versioned_docs/version-29.1/SetupAndTeardown.md index d835a46c82e0..a24288001b2e 100644 --- a/website/versioned_docs/version-29.1/SetupAndTeardown.md +++ b/website/versioned_docs/version-29.1/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-29.2/SetupAndTeardown.md b/website/versioned_docs/version-29.2/SetupAndTeardown.md index d835a46c82e0..a24288001b2e 100644 --- a/website/versioned_docs/version-29.2/SetupAndTeardown.md +++ b/website/versioned_docs/version-29.2/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: diff --git a/website/versioned_docs/version-29.3/SetupAndTeardown.md b/website/versioned_docs/version-29.3/SetupAndTeardown.md index d835a46c82e0..a24288001b2e 100644 --- a/website/versioned_docs/version-29.3/SetupAndTeardown.md +++ b/website/versioned_docs/version-29.3/SetupAndTeardown.md @@ -63,7 +63,7 @@ test('city database has San Juan', () => { ## Scoping -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. +The top level `before*` and `after*` hooks apply to every test in a file. The hooks declared inside a `describe` block apply only to the tests within that `describe` block. 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: