UNPKG

jest-metadata

Version:

🦸‍♂️ Superhero power for your Jest reporters! 🦸‍♀️

14 lines 587 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isInsideIDE = exports.isSingleWorker = void 0; function isSingleWorker(config) { return config.runInBand || config.maxWorkers === 1; } exports.isSingleWorker = isSingleWorker; function isInsideIDE(config) { const isSingleReporter = config.reporters && config.reporters.length === 1; const singleReporter = isSingleReporter ? (config.reporters?.[0]?.[0] ?? '') : ''; return /jest-intellij/i.test(singleReporter); } exports.isInsideIDE = isInsideIDE; //# sourceMappingURL=jestUtils.js.map