/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/css/css-modules/index.js
28 строк
660 B
Alexander Akait
feat: improve localIdentName hashing
26 ноя 2025, 14:08
Не верифицирован
26 ноя 2025, 14:08
1b5084e
Код
Авторство
О чём код?
import * as styles from "./style.module.css"; it("should work", async function (done) { expect(styles).toMatchObject({ class: "style_module_css-class" }); const styles2 = await import("./style2.module.css"); expect(styles2).toMatchObject({ foo: "style2_module_css-foo" }); module.hot.accept(["./style.module.css", "./style2.module.css"], () => { expect(styles).toMatchObject({ "class-other": "style_module_css-class-other" }); import("./style2.module.css").then(styles2 => { expect(styles2).toMatchObject({ "bar": "style2_module_css-bar" }); done(); }); }); NEXT(require("../../update")(done)); }); module.hot.accept();