FIX: Recent regression meant we were proxying qunit when we shouldn't (#12860)

FIX: Recent regression meant we were proxying qunit when we shouldn’t (#12860)

diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index 7e1e112..a4e91e1 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -161,6 +161,10 @@ function buildFromBootstrap(assetPath, proxy, req) {
 }
 
 async function handleRequest(assetPath, proxy, req, res) {
+  if (assetPath.endsWith("tests/index.html")) {
+    return;
+  }
+
   if (assetPath.endsWith("index.html")) {
     try {
       // Avoid Ember CLI's proxy if doing a GET, since Discourse depends on some non-XHR

GitHub sha: 42251e2f

This commit appears in #12860 which was approved by CvX. It was merged by eviltrout.