Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zjsunit: Set browserslist target to current Node for Node tests.
Anders Kaseorgf8d6290db5be
diff --git a/.browserslistrc b/.browserslistrcindex b09754bd8b0..e6815d8a04d 100644--- a/.browserslistrc+++ b/.browserslistrc@@ -3,3 +3,6 @@last 2 versionsFirefox ESRnot dead and supports async-functions++[test]+current Nodediff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.jsindex 6ba7de59f04..c5d59eb449e 100644--- a/frontend_tests/zjsunit/index.js+++ b/frontend_tests/zjsunit/index.js@@ -16,6 +16,8 @@ const blueslip = require("./zblueslip");const zjquery = require("./zjquery");const zpage_params = require("./zpage_params");+process.env.NODE_ENV = "test";+const dom = new JSDOM("", {url: "http://zulip.zulipdev.com/"});global.DOMParser = dom.window.DOMParser;