DEV: Make the `setupTests` a regular import (#19046)

This commit is contained in:
Jarek Radosz 2022-11-16 09:11:18 +01:00 committed by GitHub
parent 4a49c22780
commit 5c4a2d428a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import loadEmberExam from "ember-exam/test-support/load";
import * as QUnit from "qunit";
import { setup } from "qunit-dom";
import Ember from "ember";
import setupTests from "discourse/tests/setup-tests";
setEnvironment("testing");
@ -23,7 +24,6 @@ document.addEventListener("discourse-booted", () => {
);
}
let setupTests = require("discourse/tests/setup-tests").default;
const params = new URLSearchParams(window.location.search);
const skipCore = params.get("qunit_skip_core") === "1";
const disableAutoStart = params.get("qunit_disable_auto_start") === "1";