diff --git a/spec/lib/js_locale_helper_spec.rb b/spec/lib/js_locale_helper_spec.rb index aef5ca44d8a..177818f871c 100644 --- a/spec/lib/js_locale_helper_spec.rb +++ b/spec/lib/js_locale_helper_spec.rb @@ -16,6 +16,7 @@ RSpec.describe JsLocaleHelper do ctx = MiniRacer::Context.new ctx.load("#{node_modules}/loader.js/dist/loader/loader.js") + ctx.eval("var window = globalThis;") ctx.eval(discourse_i18n) ctx.eval <<~JS define("discourse/loader-shims", () => {})