From 2a35d0e692c57a282cc9a21e5f81e45c374c4caa Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 19 Sep 2022 08:29:06 -0700 Subject: [PATCH] change let to const --- src/esmockModule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esmockModule.js b/src/esmockModule.js index d7a88b04..13df194b 100644 --- a/src/esmockModule.js +++ b/src/esmockModule.js @@ -113,7 +113,7 @@ const esmockModuleId = async (parent, key, defs, ids, mocks, opt, id) => { if (!id) return mocks - let mockedPathFull = resolvewith(id, parent) + const mockedPathFull = resolvewith(id, parent) if (!mockedPathFull && opt.isModuleNotFoundError !== false) throw esmockModuleIdNotFoundError(id, parent)