Landing page.
This commit is contained in:
parent
80539fd199
commit
6ef9843835
16 changed files with 1405 additions and 57 deletions
|
|
@ -1,7 +1,8 @@
|
|||
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
|
||||
import { renderHook, act, waitFor } from '@testing-library/react'
|
||||
import { useTask } from './useTask'
|
||||
import { Task, TaskStatus, UpdateTaskRequest } from '~/types/task'
|
||||
import type { Task, UpdateTaskRequest } from '~/types/task'
|
||||
import { TaskStatus } from '~/types/task'
|
||||
import { apiClient } from '~/services/api'
|
||||
|
||||
// Mock the API client
|
||||
|
|
@ -13,7 +14,7 @@ vi.mock('~/services/api', () => ({
|
|||
},
|
||||
}))
|
||||
|
||||
const mockApiClient = apiClient as {
|
||||
const mockApiClient = apiClient as unknown as {
|
||||
getTask: ReturnType<typeof vi.fn>
|
||||
updateTask: ReturnType<typeof vi.fn>
|
||||
deleteTask: ReturnType<typeof vi.fn>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue