test: use happy dom (#34154)

This commit is contained in:
Stephen Zhou authored and GitHub committed 2026-03-27 01:46:19 +00:00
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()
})