From c2575c8db0310304d268db2ed1bf77e8aca4ab0c Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Sat, 22 Jul 2023 10:02:40 -0600 Subject: [PATCH] test_runner: fix test_runner `test:fail` event type PR-URL: https://github.com/nodejs/node/pull/48854 Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow Reviewed-By: Chemi Atlow --- doc/api/test.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/test.md b/doc/api/test.md index 6aaae17303872d..96290ab22fc56f 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -1956,7 +1956,8 @@ Emitted when a test is enqueued for execution. * `data` {Object} * `details` {Object} Additional execution metadata. * `duration` {number} The duration of the test in milliseconds. - * `error` {Error} The error thrown by the test. + * `error` {Error} An error wrapping the error thrown by the test. + * `cause` {Error} The actual error thrown by the test. * `file` {string|undefined} The path of the test file, `undefined` if test was run through the REPL. * `name` {string} The test name.