/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/resolve/fallback/index.js
14 строк
329 B
Ivan Kopeykin
up enhanced-resolve
13 апр 2022, 12:46
13 апр 2022, 12:46
68f22ac
Код
Авторство
О чём код?
it("ignores the fallback if an existing module is present", () => { const two = require("./b/2"); expect(two).toBe(2); }); it("can fallback if the module does not exist", () => { const one = require("./b/1"); expect(one).toBe(1); }); it("# alias should work", () => { const one = require("#/a"); expect(one).toBe(1); });