/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/cases/errors/load-module-cycle-multiple/index.js
31 строка
1 KB
Tobias Koppers
keep old test case too
19 окт 2021, 00:14
19 окт 2021, 00:14
9b08be6
Код
Авторство
О чём код?
it("should error loadModule when a cycle with 2 modules is requested", () => { expect(require("./loader!./2/a")).toEqual([ ["./b.json", [ ["./a.json", "err: There is a circular build dependency, which makes it impossible to create this module"] ]] ]); }); it("should error loadModule when a cycle with 3 modules is requested", () => { expect(require("./loader!./3/a")).toEqual([ ["./b.json", [ ["./c.json", [ ["./a.json", "err: There is a circular build dependency, which makes it impossible to create this module"] ]] ]] ]); }); it("should error loadModule when requesting itself", () => { expect(require("./loader!./1/a")).toEqual([ ["./a.json", "err: There is a circular build dependency, which makes it impossible to create this module"] ]); }); it("should not report a cycle when loadModule is used twice (https://github.com/webpack/webpack/issues/14379)", () => { expect(require("./loader!./4/a")).toEqual([ ["./b.json", [ ["./c.json", []] ]], ["./b.json", [ ["./c.json", []] ]] ]); });