From 9e9a27b12b97145e0f8c1a3cc13cbea69b89efa7 Mon Sep 17 00:00:00 2001 From: vstefanovic97 Date: Thu, 31 Oct 2024 13:51:40 +0100 Subject: [PATCH] Fix @typs/qunit overrides for latest qunit version --- addon/package.json | 2 +- addon/types/index.d.ts | 66 ++++++++++++++++--------- pnpm-lock.yaml | 21 ++++---- test-app/package.json | 2 +- test-buildtime-options-app/package.json | 2 +- test-types/package.json | 2 +- test-types/src/tests.ts | 42 ++++++++++++++++ 7 files changed, 99 insertions(+), 38 deletions(-) diff --git a/addon/package.json b/addon/package.json index cd46a561..6441b2d2 100644 --- a/addon/package.json +++ b/addon/package.json @@ -55,7 +55,7 @@ "@release-it-plugins/lerna-changelog": "^6.0.0", "@rollup/plugin-babel": "^5.3.0", "@tsconfig/ember": "^2.0.0", - "@types/qunit": "^2.19.6", + "@types/qunit": "^2.19.12", "@types/rsvp": "^4.0.4", "concurrently": "^8.0.1", "ember-source": "^5.0.0", diff --git a/addon/types/index.d.ts b/addon/types/index.d.ts index d11b83d5..aa31b9f0 100644 --- a/addon/types/index.d.ts +++ b/addon/types/index.d.ts @@ -179,30 +179,6 @@ declare global { } interface QUnit { - /** - * Add a test to run. - * - * Add a test to run using `QUnit.test()`. - * - * The `assert` argument to the callback contains all of QUnit's assertion - * methods. Use this argument to call your test assertions. - * - * `QUnit.test()` can automatically handle the asynchronous resolution of a - * Promise on your behalf if you return a thenable Promise as the result of - * your callback function. - * - * @param name Title of unit being tested - * @param callback Function to close over assertions - */ - // SAFETY: this is just wildly, impossibly unsafe. QUnit cannot -- ever! -- - // provide this guarantee. However, it's also the only way to support TS - // in tests in Ember until we move the community over entirely to using - // `