From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:48:15 +0800 Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改 --- PAMapp/node_modules/jest-environment-node/build/index.js | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/PAMapp/node_modules/jest-environment-node/build/index.js b/PAMapp/node_modules/jest-environment-node/build/index.js index 7956c99..64904cb 100644 --- a/PAMapp/node_modules/jest-environment-node/build/index.js +++ b/PAMapp/node_modules/jest-environment-node/build/index.js @@ -104,6 +104,10 @@ if (typeof AbortController !== 'undefined') { global.AbortController = AbortController; + } // AbortSignal is global in Node >= 15 + + if (typeof AbortSignal !== 'undefined') { + global.AbortSignal = AbortSignal; } // Event is global in Node >= 15.4 if (typeof Event !== 'undefined') { @@ -112,6 +116,15 @@ if (typeof EventTarget !== 'undefined') { global.EventTarget = EventTarget; + } // performance is global in Node >= 16 + + if (typeof performance !== 'undefined') { + global.performance = performance; + } // atob and btoa are global in Node >= 16 + + if (typeof atob !== 'undefined' && typeof btoa !== 'undefined') { + global.atob = atob; + global.btoa = btoa; } (0, _jestUtil().installCommonGlobals)(global, config.globals); -- Gitblit v1.8.0