mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
mock useQuery
This commit is contained in:
parent
56807d25ae
commit
e8c47331e9
@ -11,6 +11,22 @@ vi.mock('@/components/Overview/CommunityNews', () => ({
|
||||
},
|
||||
}))
|
||||
|
||||
vi.mock('@vue/apollo-composable', () => ({
|
||||
useQuery: vi.fn().mockReturnValue({
|
||||
result: { value: {} },
|
||||
loading: { value: false },
|
||||
error: { value: null },
|
||||
refetch: vi.fn(),
|
||||
}),
|
||||
}))
|
||||
|
||||
vi.mock('@/components/Overview/CardCircles', () => ({
|
||||
default: {
|
||||
name: 'CardCircles',
|
||||
template: '<div class="card-circles"></div>',
|
||||
},
|
||||
}))
|
||||
|
||||
describe('Overview', () => {
|
||||
let wrapper
|
||||
let router
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user