/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/generate-error/test.js
8 строк
303 B
Raj Aryan
test(html): cover generateError, ignored-source, and null-character parse paths (#21328)
03 июл 2026, 15:05
Не верифицирован
03 июл 2026, 15:05
0e43c4a
Код
Авторство
О чём код?
const fs = require("fs"); const path = require("path"); it("should emit an HTML error comment when the module build fails", () => { const html = fs.readFileSync(path.resolve(__dirname, "page.html"), "utf-8"); expect(html).toMatch(/<!--\s*webpack error:/); expect(html).not.toContain("<error>"); });