Skip to content

Commit 115d06c

Browse files
cjihrigtargos
authored andcommitted
test: document NODE_TEST_KNOWN_GLOBALS
PR-URL: #27434 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 47d311b commit 115d06c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/common/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This directory contains modules used to test the Node.js implementation.
99
* [Countdown module](#countdown-module)
1010
* [DNS module](#dns-module)
1111
* [Duplex pair helper](#duplex-pair-helper)
12+
* [Environment variables](#environment-variables)
1213
* [Fixtures module](#fixtures-module)
1314
* [Heap dump checker module](#heap-dump-checker-module)
1415
* [HTTP2 module](#http2-module)
@@ -495,6 +496,17 @@ which returns an object `{ clientSide, serverSide }` where each side is a
495496

496497
There is no difference between client or server side beyond their names.
497498

499+
## Environment variables
500+
501+
The behavior of the Node.js test suite can be altered using the following
502+
environment variables.
503+
504+
### NODE_TEST_KNOWN_GLOBALS
505+
506+
A comma-separated list of variables names that are appended to the global
507+
variable whitelist. Alternatively, if `NODE_TEST_KNOWN_GLOBALS` is set to `'0'`,
508+
global leak detection is disabled.
509+
498510
## Fixtures Module
499511

500512
The `common/fixtures` module provides convenience methods for working with

0 commit comments

Comments
 (0)