update ai insight migration for all page
This commit is contained in:
1 parent
07d36081ce
commit
18790ab8f6
69 files changed
+9457
-399
No files matched your search
@@ -28,13 +28,14 @@ vi.mock('../../../services/apiClient.ts', () => ({
|
||||
]),
|
||||
create: vi.fn(),
|
||||
},
|
||||
insights: {
|
||||
list: vi.fn().mockResolvedValue([]),
|
||||
},
|
||||
},
|
||||
errorMessage: (err: unknown) => (err instanceof Error ? err.message : 'Terjadi kesalahan'),
|
||||
}));
|
||||
|
||||
vi.mock('../../shared/PageAiInsight.tsx', () => ({
|
||||
PageAiInsight: () => <div data-testid="page-ai-insight" />,
|
||||
}));
|
||||
|
||||
vi.mock('../../../context/FarmContext.tsx', () => ({
|
||||
useFarm: () => ({
|
||||
selectedSite: { id: 1, site_name: 'Sukawarna', user: 1, created_at: '', updated_at: '' },
|
||||
@@ -45,6 +46,7 @@ vi.mock('../../../context/FarmContext.tsx', () => ({
|
||||
created_at: '',
|
||||
updated_at: '',
|
||||
},
|
||||
selectedKandangId: 1,
|
||||
selectedCycle: {
|
||||
id: 1,
|
||||
kandang: 1,
|
||||
|
||||
Reference in new issue
Block a user