| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8e84aad commit b3157a0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1435,6 +1435,9 @@ describe('tests', async () => { | |||
| 1435 | 1435 | }); | |
| 1436 | 1436 | ``` | |
| 1437 | 1437 | ||
| 1438 | + **Note:** The `after` hook is guaranteed to run, | ||
| 1439 | + even if tests within the suite fail. | ||
| 1440 | + | ||
| 1438 | 1441 | ## `beforeEach([fn][, options])` | |
| 1439 | 1442 | ||
| 1440 | 1443 | <!-- YAML | |
@@ -1488,6 +1491,9 @@ added: | |||
| 1488 | 1491 | This function is used to create a hook running | |
| 1489 | 1492 | after each subtest of the current test. | |
| 1490 | 1493 | ||
| 1494 | + **Note:** The `afterEach` hook is guaranteed to run after every test, | ||
| 1495 | + even if any of the tests fail. | ||
| 1496 | + | ||
| 1491 | 1497 | ```js | |
| 1492 | 1498 | describe('tests', async () => { | |
| 1493 | 1499 | afterEach(() => console.log('finished running a test')); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments