GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: add "type" to test runner event details · nodejs/node@e374ba2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • test.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/test.md‎

Copy file name to clipboardExpand all lines: doc/api/test.md
+11-1Lines changed: 11 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,13 @@ clocks or actual timers outside of the mocking environment.
19201920
## Class: `TestsStream`
19211921

19221922
<!-- YAML
1923-
added: v18.9.0
1923+
added:
1924+
- v18.9.0
1925+
- v16.19.0
1926+
changes:
1927+
- version: v18.17.0
1928+
pr-url: https://github.com/nodejs/node/pull/47094
1929+
description: added type to test:pass and test:fail events for when the test is a suite.
19241930
-->
19251931

19261932
* Extends {ReadableStream}
@@ -2002,6 +2008,8 @@ Emitted when a test is enqueued for execution.
20022008
* `duration_ms` {number} The duration of the test in milliseconds.
20032009
* `error` {Error} An error wrapping the error thrown by the test.
20042010
* `cause` {Error} The actual error thrown by the test.
2011+
* `type` {string|undefined} The type of the test, used to denote whether
2012+
this is a suite.
20052013
* `file` {string|undefined} The path of the test file,
20062014
`undefined` if test was run through the REPL.
20072015
* `name` {string} The test name.
@@ -2017,6 +2025,8 @@ Emitted when a test fails.
20172025
* `data` {Object}
20182026
* `details` {Object} Additional execution metadata.
20192027
* `duration_ms` {number} The duration of the test in milliseconds.
2028+
* `type` {string|undefined} The type of the test, used to denote whether
2029+
this is a suite.
20202030
* `file` {string|undefined} The path of the test file,
20212031
`undefined` if test was run through the REPL.
20222032
* `name` {string} The test name.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.