From c2056f3f70f2a5bdca0b8064e1bb79bf75c831ce Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 27 Jan 2022 18:19:17 +0100 Subject: [PATCH] fixup! add comment --- packages/jest-environment-node/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-environment-node/src/index.ts b/packages/jest-environment-node/src/index.ts index 5c180b2ca1b1..27b65b5add37 100644 --- a/packages/jest-environment-node/src/index.ts +++ b/packages/jest-environment-node/src/index.ts @@ -82,7 +82,7 @@ class NodeEnvironment implements JestEnvironment { if (typeof performance !== 'undefined') { global.performance = performance; } - // performance is global in Node >= 16 + // atob and btoa are global in Node >= 16 if (typeof atob !== 'undefined' && typeof btoa !== 'undefined') { global.atob = atob; global.btoa = btoa;