test: clear latest setup mock lint

This commit is contained in:
Peter Steinberger
2026-05-10 17:00:59 +01:00
parent 7ef587b264
commit 64a4ff41ce
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ function makePluginRegistry(overrides: Partial<PluginRegistry> = {}): PluginRegi
} as unknown as PluginRegistry;
}
function callArg<T>(mock: { mock: { calls: unknown[][] } }, index = 0): T {
function callArg<T>(mock: { mock: { calls: unknown[][] } }, index = 0, _type?: (value: T) => T): T {
const call = mock.mock.calls[index];
expect(call).toBeDefined();
return call?.[0] as T;

View File

@@ -140,7 +140,7 @@ function expectError(result: CallResult, code: string, message: string): void {
expect(result.error?.message).toBe(message);
}
function firstCallArg<T>(mock: { mock: { calls: unknown[][] } }): T {
function firstCallArg<T>(mock: { mock: { calls: unknown[][] } }, _type?: (value: T) => T): T {
const call = mock.mock.calls[0];
expect(call).toBeDefined();
return call?.[0] as T;