/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/template-non-string/test.js
8 строк
317 B
Raj Aryan
test(html): cover HtmlParser template, webpackIgnore, svg-namespace, BOM, and unquoted-type paths (#21335)
06 июл 2026, 13:55
Не верифицирован
06 июл 2026, 13:55
c572a82
Код
Авторство
О чём код?
const fs = require("fs"); const path = require("path"); it("should emit an error when the template option returns a non-string", () => { const html = fs.readFileSync(path.resolve(__dirname, "page.html"), "utf-8"); expect(html).toMatch(/<!--\s*webpack error:/); expect(html).toContain("must return a string"); });