jest-allure2-reporter
Version:
Idiomatic Jest reporter for Allure Framework
15 lines • 514 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLibraryPath = isLibraryPath;
const POSIX_PATTERN = '/node_modules/';
const WINDOWS_PATTERN = '\\node_modules\\';
const NODE_PATTERN = 'node:';
function isLibraryPath(filePath) {
if (typeof filePath !== 'string') {
return false;
}
return (filePath.includes(POSIX_PATTERN) ||
filePath.includes(WINDOWS_PATTERN) ||
filePath.startsWith(NODE_PATTERN));
}
//# sourceMappingURL=isLibraryPath.js.map