Skip to content

Commit 0813257

Browse files
Ethan ArrowoodCeres6
authored andcommitted
test_runner: fix test_runner test:fail event type
PR-URL: nodejs#48854 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent 9923dd9 commit 0813257

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/test.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,8 @@ Emitted when a test is enqueued for execution.
20152015
* `data` {Object}
20162016
* `details` {Object} Additional execution metadata.
20172017
* `duration` {number} The duration of the test in milliseconds.
2018-
* `error` {Error} The error thrown by the test.
2018+
* `error` {Error} An error wrapping the error thrown by the test.
2019+
* `cause` {Error} The actual error thrown by the test.
20192020
* `file` {string|undefined} The path of the test file,
20202021
`undefined` if test was run through the REPL.
20212022
* `name` {string} The test name.

0 commit comments

Comments
 (0)