DEV: Deprecate componentTest (#30001)

This commit is contained in:
Jarek Radosz 2024-11-30 15:33:27 +01:00 committed by GitHub
parent 85ead5ac7a
commit fa4a37fd7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@ import Site from "discourse/models/site";
import TopicTrackingState from "discourse/models/topic-tracking-state";
import User from "discourse/models/user";
import { currentSettings } from "discourse/tests/helpers/site-settings";
import deprecated from "discourse-common/lib/deprecated";
export function setupRenderingTest(hooks) {
emberSetupRenderingTest(hooks);
@ -51,6 +52,14 @@ export function setupRenderingTest(hooks) {
}
export default function (name, hooks, opts) {
deprecated(
`\`componentTest\` is deprecated. Use QUnit's \`test\` and \`setupRenderingTest\` from "discourse/tests/helpers/component-test" instead.`,
{
id: "discourse.component-test",
since: "3.4.0.beta3-dev",
}
);
if (opts === undefined) {
opts = hooks;
}