/
moreqqq
/
DeliveryService
Обзор
Документация
Войти
/
moreqqq
/
DeliveryService
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
server/node_modules/istanbul-lib-source-maps/lib/transform-utils.js
21 строка
478 B
moreqqq
написал тесты
29 май 2026, 22:13
29 май 2026, 22:13
6f740ff
Код
Авторство
О чём код?
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; function getUniqueKey(pathname) { return pathname.replace(/[\\/]/g, '_'); } function getOutput(cache) { return Object.values(cache).reduce( (output, { file, mappedCoverage }) => ({ ...output, [file]: mappedCoverage }), {} ); } module.exports = { getUniqueKey, getOutput };