diff --git a/frontend_tests/zjsunit/namespace.js b/frontend_tests/zjsunit/namespace.js index 5e16a41e18..54099ae0b6 100644 --- a/frontend_tests/zjsunit/namespace.js +++ b/frontend_tests/zjsunit/namespace.js @@ -148,7 +148,6 @@ exports.zrequire = function (short_fn) { }; const staticPath = path.resolve(__dirname, "../../static") + path.sep; -const templatesPath = staticPath + "templates" + path.sep; exports.complain_about_unused_mocks = function () { for (const filename of module_mocks.keys()) { @@ -177,7 +176,7 @@ exports.finish = function () { used_module_mocks.clear(); for (const path of Object.keys(require.cache)) { - if (path.startsWith(staticPath) && !path.startsWith(templatesPath)) { + if (path.startsWith(staticPath)) { delete require.cache[path]; } }