diff --git a/client/tests/jest/jest.setup.js b/client/tests/jest/jest.setup.js index 505e186fd517..bf547952dc9f 100644 --- a/client/tests/jest/jest.setup.js +++ b/client/tests/jest/jest.setup.js @@ -4,6 +4,9 @@ import "fake-indexeddb/auto"; import Vue from "vue"; +// not available in jsdom, mock it out +Element.prototype.scrollIntoView = jest.fn(); + // Set Vue to suppress production / devtools / etc. warnings Vue.config.productionTip = false; Vue.config.devtools = false;