From 41c6d06e8f5b43c8cf5a8215fd8b322919dad5a4 Mon Sep 17 00:00:00 2001 From: pulkit-30 Date: Thu, 11 Jan 2024 23:31:37 +0530 Subject: [PATCH] doc: update todo test behaviour --- doc/api/test.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/test.md b/doc/api/test.md index 5f2d3dfad56cd0..dc189bdabce77d 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -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