/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/parser-template-insertion-mode/test.config.js
16 строк
375 B
Raj Aryan
test(html): cover parser tree-construction edge cases and generator fallbacks (#21631)
10 авг 2026, 12:16
Не верифицирован
10 авг 2026, 12:16
57f8dcf
Код
Авторство
О чём код?
"use strict"; const fs = require("fs"); const path = require("path"); module.exports = { findBundle(_i, options) { const files = fs.readdirSync(options.output.path); return files.includes("main.js") ? ["./main.js"] : undefined; }, afterExecute(options) { expect( fs.readFileSync(path.join(options.output.path, "page.html"), "utf8") ).toMatchSnapshot(); } };