mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
test: use happy dom (#34154)
This commit is contained in:
1 parent
368896d84d
commit
07f4950cb3
33 files changed
+306
-157
No files matched your search
@@ -11,7 +11,7 @@ describe('code.tsx components', () => {
|
||||
vi.clearAllMocks()
|
||||
vi.spyOn(console, 'error').mockImplementation(() => {})
|
||||
vi.useFakeTimers({ shouldAdvanceTime: true })
|
||||
// jsdom does not implement scrollBy; mock it to prevent stderr noise
|
||||
// The test DOM runtime does not implement scrollBy; mock it to prevent stderr noise
|
||||
window.scrollBy = vi.fn()
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user