How to use the jest-util.getCallsite function in jest-util

To help you get started, we’ve selected a few jest-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Marwan01 / food-converter / node_modules / jest-jasmine2 / build / index.js View on Github external
environment.global.xit = (...args) => {
        const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
        const xit = originalXit(...args); // @ts-ignore

        xit.result.__callsite = stack;
        return xit;
      };
github makuga01 / dnsFookup / FE / node_modules / jest-jasmine2 / build / index.js View on Github external
environment.global.fit = (...args) => {
        const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
        const fit = originalFit(...args); // @ts-ignore

        fit.result.__callsite = stack;
        return fit;
      };
    }
github flaviuse / mern-authentication / client / node_modules / jest-jasmine2 / build / index.js View on Github external
environment.global.xit = (...args) => {
        const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
        const xit = originalXit(...args); // @ts-ignore

        xit.result.__callsite = stack;
        return xit;
      };
github zubairghori / Ultimate_todo_list / node_modules / jest-jasmine2 / build / index.js View on Github external
environment.global.it = function() {
        const stack = (0, _jestUtil.getCallsite)(1, runtime.getSourceMaps());
        const it = originalIt.apply(undefined, arguments);

        it.result.__callsite = stack;

        return it;
      };
    }