FIX: Make theme tests work with subfolder and fetch lazy-loaded assets from CDN (PR #12837)


Not a huge fan of this hack, but setting baseUri in lib/get-url (which is needed to get the right CDN URL) makes our ajax lib prepend the subfolder path to all the requests it makes which makes pretender unable to recognize our fixtures. One alternative fix is to add an isTesting() check in our ajax lib here and if we’re in test mode then we skip the getURL call, but I’m not a fan of that approach either.

Superseded by FEATURE: Allow theme tests to be run in production (take 2) by OsamaSayegh · Pull Request #12845 · discourse/discourse · GitHub.