[fix] test code timeout error fixed

This commit is contained in:
Jin Yi
2025-08-06 20:53:59 +09:00
parent 0861c3239c
commit 8c7d65ee6e
4 changed files with 81 additions and 146 deletions

View File

@@ -36,9 +36,15 @@ vi.mock('@/stores/workspace/colorPaletteStore', () => ({
}))
}))
vi.mock('@vueuse/core', () => ({
whenever: vi.fn()
}))
vi.mock('@vueuse/core', async () => {
const { ref } = await import('vue')
return {
whenever: vi.fn(),
useStorage: vi.fn((_key, defaultValue) => {
return ref(defaultValue)
})
}
})
vi.mock('@/config', () => ({
default: {