/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/js-css-html/index.js
19 строк
428 B
Alexander Akait
feat: handle all sources except script and style (#20930)
08 май 2026, 13:17
Не верифицирован
08 май 2026, 13:17
325af56
Код
Авторство
О чём код?
import html from "./page.html"; import "./style.css"; it("should work", () => { const myUrl = new URL("./image.png", import.meta.url); expect(myUrl).toMatchSnapshot(); expect(html).toMatchSnapshot(); const links = document.getElementsByTagName("link"); const css = []; // Skip first because import it by default for (const link of links.slice(1)) { css.push(link.sheet.css); } expect(css).toMatchSnapshot(); });