Skip to content

Commit

Permalink
chore: compile without ts-ignore (#8851)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 6, 2024
1 parent 4eaf77f commit 0351528
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/testing/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ export function tuiHarnessWith<T>(
with: (options?: BaseHarnessFilters) => HarnessPredicate<ComponentHarness>;
} {
return class extends ComponentHarness {
public static readonly locator?: T;
public static hostSelector = hostSelector;

// @ts-ignore
public static with(_options: BaseHarnessFilters = {}): HarnessPredicate<T> {
public static with(
_options: BaseHarnessFilters = {},
): HarnessPredicate<ComponentHarness> {
throw new Error('Hummus');
}
} as unknown as ComponentHarnessConstructor<ComponentHarness> & {
with: (options?: BaseHarnessFilters) => HarnessPredicate<ComponentHarness>;
};
}

Expand Down

0 comments on commit 0351528

Please sign in to comment.