Add mock for Element.scrollIntoView to fix tests.

Signed-off-by: Sydney Achinger <sydneynicoleachinger@spotify.com>
This commit is contained in:
Sydney Achinger
2023-10-16 16:40:00 -04:00
parent d0566f5184
commit 2daffe3f7d
2 changed files with 2 additions and 2 deletions
@@ -91,8 +91,6 @@ const configApi = new MockConfigApi({
},
});
Element.prototype.scrollIntoView = jest.fn();
const Wrapper = ({ children }: { children: React.ReactNode }) => {
return (
<TestApiProvider