Skip to content

Commit 4cac769

Browse files
refactor: fix test in CreatTasl.test.tsx
1 parent 9ebfaea commit 4cac769

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

client/src/features/tasks/tests/CreateTask.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ vi.mock('@/features/tasks/hooks/useTasks', () => ({
2424
useCreateTask: vi.fn().mockReturnValue({
2525
mutate: vi.fn(),
2626
}),
27+
useTasks: vi.fn().mockReturnValue({
28+
tasks: [],
29+
}),
2730
}));
2831

2932
// Mock para react-router

0 commit comments

Comments
 (0)