mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:22:45 +08:00
DEV: Correct core test run detection for theme-qunit (#20635)
Followup to 8f1a5c9392
This commit is contained in:
parent
8f1a5c9392
commit
3e8d349465
|
@ -388,11 +388,10 @@ export default function setupTests(config) {
|
||||||
reportMemoryUsageAfterTests();
|
reportMemoryUsageAfterTests();
|
||||||
patchFailedAssertion();
|
patchFailedAssertion();
|
||||||
|
|
||||||
const hasPluginJs = Array.from(
|
const hasPluginJs = !!document.querySelector("script[data-discourse-plugin]");
|
||||||
document.querySelector("#dynamic-test-js").content.childNodes
|
const hasThemeJs = !!document.querySelector("script[data-theme-id]");
|
||||||
).some((script) => script.dataset?.discoursePlugin);
|
|
||||||
|
|
||||||
if (skipPlugins || !hasPluginJs) {
|
if (!hasPluginJs && !hasThemeJs) {
|
||||||
configureRaiseOnDeprecation();
|
configureRaiseOnDeprecation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user