Skip to content

Commit

Permalink
doc: update todo test behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit-30 committed Jan 11, 2024
1 parent e0b159e commit 41c6d06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/test.md
Expand Up @@ -1250,6 +1250,10 @@ However, the return value from subtests should be used to prevent the parent
test from finishing first and cancelling the subtest
as shown in the following example.

**Note:** Running a `todo` test does not terminate the execution of the test
function. The test function is run without affecting the test result, and
if it fails, it does not end process with exitCode 1.

```js
test('top level test', async (t) => {
// The setTimeout() in the following subtest would cause it to outlive its
Expand Down

0 comments on commit 41c6d06

Please sign in to comment.