/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/output-html-template/test.js
8 строк
327 B
Raj Aryan
feat(html): add output.html.scriptLoading option (#21200)
22 июн 2026, 16:35
Не верифицирован
22 июн 2026, 16:35
b791470
Код
Авторство
О чём код?
const fs = require("fs"); const path = require("path"); it("applies the html parser template option to generated HTML", () => { const html = fs.readFileSync(path.resolve(__dirname, "main.html"), "utf-8"); expect(html).toContain("<title>MyApp</title>"); expect(html).toMatch(/<script defer src="[^"]+\.js"><\/script>/); });