/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/errors/decline-webpackhot/index.js
14 строк
397 B
Ivan Kopeykin
hmr support update
24 июн 2020, 17:22
24 июн 2020, 17:22
4cd526f
Код
Авторство
О чём код?
import a from "./a"; it("should abort when module is declined by parent", (done) => { expect(a).toBe(1); NEXT(require("../../update")((err) => { try { expect(err.message).toMatch(/Aborted because of declined dependency: \.\/b\.js in \.\/a\.js/); expect(err.message).toMatch(/Update propagation: \.\/c\.js -> \.\/b\.js -> \.\/a\.js/); done(); } catch(e) { done(e); } })); });