diff --git a/src/course-outline/CourseOutline.test.jsx b/src/course-outline/CourseOutline.test.jsx index 83c215f927..3aca2e8654 100644 --- a/src/course-outline/CourseOutline.test.jsx +++ b/src/course-outline/CourseOutline.test.jsx @@ -50,6 +50,8 @@ let store; const mockPathname = '/foo-bar'; const courseId = '123'; +window.HTMLElement.prototype.scrollIntoView = jest.fn(); + jest.mock('react-router-dom', () => ({ ...jest.requireActual('react-router-dom'), useLocation: () => ({