Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
environment.global.xit = (...args) => {
const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
const xit = originalXit(...args); // @ts-ignore
xit.result.__callsite = stack;
return xit;
};
environment.global.fit = (...args) => {
const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
const fit = originalFit(...args); // @ts-ignore
fit.result.__callsite = stack;
return fit;
};
}
environment.global.xit = (...args) => {
const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
const xit = originalXit(...args); // @ts-ignore
xit.result.__callsite = stack;
return xit;
};
environment.global.it = function() {
const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
const it = originalIt.apply(undefined, arguments);
it.result.__callsite = stack;
return it;
};
}