mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor(web): migrate to Vitest and esm (#29974)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
@ -115,8 +115,8 @@ describe('useBreakpoints', () => {
|
||||
*/
|
||||
it('should clean up event listeners on unmount', () => {
|
||||
// Spy on addEventListener and removeEventListener
|
||||
const addEventListenerSpy = jest.spyOn(window, 'addEventListener')
|
||||
const removeEventListenerSpy = jest.spyOn(window, 'removeEventListener')
|
||||
const addEventListenerSpy = vi.spyOn(window, 'addEventListener')
|
||||
const removeEventListenerSpy = vi.spyOn(window, 'removeEventListener')
|
||||
|
||||
const { unmount } = renderHook(() => useBreakpoints())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user