diff --git a/customJestStubs.js b/customJestStubs.js index 79b7a07..bdc698b 100644 --- a/customJestStubs.js +++ b/customJestStubs.js @@ -95,10 +95,9 @@ const customStubs = exclude => ExcludedModule.useMinified.minName, '' ); - Module.path = ExcludedModule.path; + Module.path = ExcludedModule.path + stubModuleName + ext; break; } - Module.path = Module.path + stubModuleName + ext; return Module; }); diff --git a/docs/-__tests___stubs_SuiteScripts_Modules_aModule-test.js.html b/docs/-__tests___stubs_SuiteScripts_Modules_aModule-test.js.html index 8e204a9..aa7d002 100644 --- a/docs/-__tests___stubs_SuiteScripts_Modules_aModule-test.js.html +++ b/docs/-__tests___stubs_SuiteScripts_Modules_aModule-test.js.html @@ -104,7 +104,7 @@