diff --git a/projects/testing/utils/helpers.ts b/projects/testing/utils/helpers.ts index 582c63f8d2ca..aff6dca6fffc 100644 --- a/projects/testing/utils/helpers.ts +++ b/projects/testing/utils/helpers.ts @@ -31,14 +31,14 @@ export function tuiHarnessWith( with: (options?: BaseHarnessFilters) => HarnessPredicate; } { return class extends ComponentHarness { + public static readonly locator?: T; public static hostSelector = hostSelector; - // @ts-ignore - public static with(_options: BaseHarnessFilters = {}): HarnessPredicate { + public static with( + _options: BaseHarnessFilters = {}, + ): HarnessPredicate { throw new Error('Hummus'); } - } as unknown as ComponentHarnessConstructor & { - with: (options?: BaseHarnessFilters) => HarnessPredicate; }; }