mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
refactor: use ungh for github api (#34108)
This commit is contained in:
@ -103,12 +103,14 @@ vi.mock('@/service/use-tools', () => ({
|
||||
useInvalidateAllToolProviders: () => mockInvalidateAllToolProviders,
|
||||
}))
|
||||
|
||||
vi.mock('../../install-plugin/hooks', () => ({
|
||||
useGitHubReleases: () => ({
|
||||
vi.mock('../../install-plugin/hooks', async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import('../../install-plugin/hooks')>()
|
||||
return {
|
||||
...actual,
|
||||
checkForUpdates: mockCheckForUpdates,
|
||||
fetchReleases: mockFetchReleases,
|
||||
}),
|
||||
}))
|
||||
}
|
||||
})
|
||||
|
||||
// Auto upgrade settings mock
|
||||
let mockAutoUpgradeInfo: {
|
||||
|
||||
Reference in New Issue
Block a user