/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/source-map/default-source-map-properties/index.js
15 строк
633 B
Xiao
fix: omit empty ignoreList property from source maps (#20319)
19 янв 2026, 16:29
Не верифицирован
19 янв 2026, 16:29
edfaa0f
Код
Авторство
О чём код?
it("should not include empty ignoreList in source map", () => { const fs = require("fs"); const path = require("path"); const sourceMapPath = path.join(__dirname, "bundle0.js.map"); const sourceMapContent = fs.readFileSync(sourceMapPath, "utf-8"); expect(sourceMapContent).not.toMatch(/"ignoreList"\s*:\s*\[\s*\]/); // Verify default source map properties are present const sourceMap = JSON.parse(sourceMapContent); expect(sourceMap).toHaveProperty("version", 3); expect(sourceMap).toHaveProperty("sources"); expect(Array.isArray(sourceMap.sources)).toBe(true); expect(sourceMap.sources.length).toBeGreaterThan(0); });