// eslint-disable-next-line import/no-extraneous-dependencies1const SetupAwaitedHandler = require('@secret-agent/client/lib/SetupAwaitedHandler');23// Jest tries to deeply recursively extract properties from objects when a test breaks - this does not play nice with AwaitedDom4const originGetProperty = SetupAwaitedHandler.delegate.getProperty;5SetupAwaitedHandler.delegate.getProperty = function getProperty(...args) {6const parentPath = new Error().stack;7if (parentPath.includes('deepCyclicCopy')) {8return null;9}10// eslint-disable-next-line prefer-rest-params11return originGetProperty(...args);12};131415