/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/source-map/source-map-debugids/index.js
12 строк
476 B
alexander.akait
feat: support for eval
21 ноя 2024, 16:03
21 ноя 2024, 16:03
b4f8533
Код
Авторство
О чём код?
const fs = require("fs"); it("source should include debug id that matches debugId key in sourcemap", function() { const source = fs.readFileSync(__filename, "utf-8"); const sourceMap = fs.readFileSync(__filename + ".map", "utf-8"); const map = JSON.parse(sourceMap); expect(map.debugId).toBeDefined(); expect( /[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i.test(map.debugId) ).toBe(true); expect(source).toContain(`//# debugId=${map.debugId}`); });