changement
This commit is contained in:
@@ -2,6 +2,9 @@ import '@testing-library/jest-dom'
|
||||
import { afterEach } from 'vitest'
|
||||
import { cleanup } from '@testing-library/react'
|
||||
|
||||
// jsdom n'implémente pas le défilement, présent dans tous les navigateurs.
|
||||
Element.prototype.scrollIntoView ??= function scrollIntoView() {}
|
||||
|
||||
afterEach(() => {
|
||||
cleanup()
|
||||
localStorage.clear()
|
||||
|
||||
Reference in New Issue
Block a user