/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/output-html-skip-html-entry/test.js
9 строк
410 B
Alexander Akait
feat(html): generate output.html for entrypoints with dependOn support (#21215)
18 июн 2026, 23:04
Не верифицирован
18 июн 2026, 23:04
868209f
Код
Авторство
О чём код?
const fs = require("fs"); const path = require("path"); it("does not double-wrap an actual HTML entry when output.html is true", () => { const html = fs.readFileSync(path.resolve(__dirname, "page.html"), "utf-8"); expect(html).toContain("<title>Real HTML Entry</title>"); // only the real document, not a synthetic data:text/html wrapper expect(html.match(/<!doctype html>/gi) || []).toHaveLength(1); });