/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/css/fetch-priority/index.js
26 строк
639 B
Alexander Akait
feat: improve localIdentName hashing
26 ноя 2025, 14:08
Не верифицирован
26 ноя 2025, 14:08
1b5084e
Код
Авторство
О чём код?
it("should work", async function (done) { const styles = await import(/* webpackFetchPriority: "high" */ "./style.module.css"); expect(styles).toMatchObject({ class: "style_module_css-class" }); module.hot.accept("./style.module.css", () => { import("./style.module.css").then(styles => { expect(styles).toMatchObject({ "class-other": "style_module_css-class-other" }); const links = window.document.getElementsByTagName('link'); if (links.length > 0) { expect(links[0].getAttribute('fetchpriority')).toBe('high'); } done(); }); }); NEXT(require("../../update")(done)); }); module.hot.accept();