Skip to content

Commit bdceb26

Browse files
committed
refactor(tests): update mockFetch type
1 parent 8ed4878 commit bdceb26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/datatable/__tests__/race-conditions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { waitFor } from './setup';
99

1010
describe('KTDataTable Race Condition Fixes', () => {
1111
let container: HTMLElement;
12-
let mockFetch: ReturnType<typeof vi.fn>;
12+
let mockFetch: typeof fetch;
1313
let abortSignals: AbortSignal[] = [];
1414

1515
beforeEach(() => {
@@ -35,7 +35,7 @@ describe('KTDataTable Race Condition Fixes', () => {
3535

3636
// Mock fetch to track requests and signals
3737
abortSignals = [];
38-
mockFetch = vi.fn((url, options) => {
38+
mockFetch = vi.fn<typeof fetch>((url, options) => {
3939
// Store abort signal for verification
4040
if (options?.signal) {
4141
abortSignals.push(options.signal);

0 commit comments

Comments
 (0)