From 171b9fd9ba3abaa994e98e48725f11b9f5a9ebdf Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 15 Nov 2026 06:14:00 +0000 Subject: [PATCH] chore(internals): specify mock import type argument Replaces the unnecessary type assertion on importOriginal in the packages service tests with an explicit type argument. The assertion had no runtime effect. Repository suppressions for @typescript-eslint/no-unnecessary-type-assertion go from 193 to 192. Co-authored-by: Cory Rylan Signed-off-by: Cursor Agent --- projects/internals/tools/eslint-suppressions.json | 5 ----- projects/internals/tools/src/packages/service.test.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/internals/tools/eslint-suppressions.json b/projects/internals/tools/eslint-suppressions.json index a25d8fe913..19c36267e4 100644 --- a/projects/internals/tools/eslint-suppressions.json +++ b/projects/internals/tools/eslint-suppressions.json @@ -4,11 +4,6 @@ "count": 2 } }, - "src/packages/service.test.ts": { - "@typescript-eslint/no-unnecessary-type-assertion": { - "count": 1 - } - }, "src/packages/utils.test.ts": { "@typescript-eslint/no-unnecessary-type-assertion": { "count": 1 diff --git a/projects/internals/tools/src/packages/service.test.ts b/projects/internals/tools/src/packages/service.test.ts index a4db1f90ba..b413dbbf36 100644 --- a/projects/internals/tools/src/packages/service.test.ts +++ b/projects/internals/tools/src/packages/service.test.ts @@ -23,7 +23,7 @@ function hasInputSchema( } vi.mock('../api/utils.js', async importOriginal => { - const actual = (await importOriginal()) as Record; + const actual = await importOriginal>(); return { ...actual, getLatestPublishedVersions: vi.fn().mockResolvedValue({