FIX: QUnit site has to be set before `reset()`

FIX: QUnit site has to be set before reset()

diff --git a/test/javascripts/helpers/qunit-helpers.js b/test/javascripts/helpers/qunit-helpers.js
index 7d1018b..c51cec6 100644
--- a/test/javascripts/helpers/qunit-helpers.js
+++ b/test/javascripts/helpers/qunit-helpers.js
@@ -170,15 +170,15 @@ export function acceptance(name, options) {
       clearHTMLCache();
       resetPluginApi();
 
+      if (options.site) {
+        resetSite(currentSettings(), options.site);
+      }
+
       Discourse.reset();
       this.container = getOwner(this);
       setURLContainer(this.container);
       setDefaultOwner(this.container);
 
-      if (options.site) {
-        resetSite(currentSettings(), options.site);
-      }
-
       if (options.beforeEach) {
         options.beforeEach.call(this);
       }

GitHub sha: 71e747b1

This commit appears in #10480 which was merged by eviltrout.