Landing page.

This commit is contained in:
Drew 2025-09-22 02:32:43 -07:00
parent 80539fd199
commit 6ef9843835
16 changed files with 1405 additions and 57 deletions

View file

@ -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>