diff --git a/src/utils/common.test.ts b/src/utils/common.test.ts index 8cbfe3e..304e663 100644 --- a/src/utils/common.test.ts +++ b/src/utils/common.test.ts @@ -11,7 +11,8 @@ describe('CommonUtils', () => { expect(stripArrayTypeIfPresent('string')).toBe('string'); expect(stripArrayTypeIfPresent('string []')).toBe('string []'); expect( - stripArrayTypeIfPresent(undefined as unknown as string), + // @ts-expect-error Intentionally testing invalid input + stripArrayTypeIfPresent(undefined), ).toBeUndefined(); }); });