/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/errors/unaccepted/index.js
14 строк
410 B
Tobias Koppers
use parser state instead of module to store harmony/dynamic exports state
07 дек 2019, 03:04
07 дек 2019, 03:04
3b4a745
Код
Авторство
О чём код?
import a from "./a"; import b from "./b"; it("should abort when module is not accepted", (done) => { expect(a).toBe(2); expect(b).toBe(1); NEXT(require("../../update")((err) => { try { expect(err.message).toMatch(/Aborted because \.\/c\.js is not accepted/); expect(err.message).toMatch(/Update propagation: \.\/c\.js -> \.\/b\.js -> \.\/index\.js/); done(); } catch(e) { done(e); } })); });