github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/setupAfterEnv.ts (about) 1 import '@testing-library/jest-dom'; 2 import 'jest-canvas-mock'; 3 import timezoneMock from 'timezone-mock'; 4 import nodeFetch from 'node-fetch'; 5 import 'regenerator-runtime/runtime'; 6 7 timezoneMock.register('UTC'); 8 9 globalThis.fetch = nodeFetch as unknown as typeof fetch; 10 11 // When testing redux we can assume this will be populated 12 // Which will be used for setting up the initialState 13 (globalThis.window as any).initialState = { 14 appNames: [], 15 };