Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zjsunit: Include path.sep in escapeRegExp argument.
Anders Kaseorga9ad69bfa4ea
diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.jsindex 5d9f4c4d2a5..f005abb9b29 100644--- a/frontend_tests/zjsunit/index.js+++ b/frontend_tests/zjsunit/index.js@@ -17,9 +17,9 @@ const zjquery = require("./zjquery");require("@babel/register")({extensions: [".es6", ".es", ".jsx", ".js", ".mjs", ".ts"],only: [- new RegExp("^" + _.escapeRegExp(path.resolve(__dirname, "../../static/js")) + path.sep),+ new RegExp("^" + _.escapeRegExp(path.resolve(__dirname, "../../static/js") + path.sep)),new RegExp(- "^" + _.escapeRegExp(path.resolve(__dirname, "../../static/shared/js")) + path.sep,+ "^" + _.escapeRegExp(path.resolve(__dirname, "../../static/shared/js") + path.sep),),],plugins: ["rewire-ts"],