From e30b119194266c9dca83ff84c118c48b749b87c7 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 26 Apr 2019 15:14:47 -0400 Subject: test: document NODE_TEST_KNOWN_GLOBALS PR-URL: https://github.com/nodejs/node/pull/27434 Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- test/common/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/common/README.md') diff --git a/test/common/README.md b/test/common/README.md index 0542c38bbc..0c8455dd28 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -9,6 +9,7 @@ This directory contains modules used to test the Node.js implementation. * [Countdown module](#countdown-module) * [DNS module](#dns-module) * [Duplex pair helper](#duplex-pair-helper) +* [Environment variables](#environment-variables) * [Fixtures module](#fixtures-module) * [Heap dump checker module](#heap-dump-checker-module) * [HTTP2 module](#http2-module) @@ -495,6 +496,17 @@ which returns an object `{ clientSide, serverSide }` where each side is a There is no difference between client or server side beyond their names. +## Environment variables + +The behavior of the Node.js test suite can be altered using the following +environment variables. + +### NODE_TEST_KNOWN_GLOBALS + +A comma-separated list of variables names that are appended to the global +variable whitelist. Alternatively, if `NODE_TEST_KNOWN_GLOBALS` is set to `'0'`, +global leak detection is disabled. + ## Fixtures Module The `common/fixtures` module provides convenience methods for working with -- cgit v1.2.3