diff --git a/.browserslistrc b/.browserslistrc index b09754bd8b..e6815d8a04 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -3,3 +3,6 @@ last 2 versions Firefox ESR not dead and supports async-functions + +[test] +current Node diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js index 6ba7de59f0..c5d59eb449 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;