| | |
| | | |
| | | 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') { |
| | |
| | | |
| | | 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); |