Skip to content

Commit 4384d73

Browse files
dependabot[bot]joshblack
authored andcommitted
chore(deps): bump @github/combobox-nav from 2.1.7 to 2.3.1 (#4185)
* chore(deps): bump @github/combobox-nav from 2.1.7 to 2.3.1 Bumps [@github/combobox-nav](https://github.com/github/combobox-nav) from 2.1.7 to 2.3.1. - [Release notes](https://github.com/github/combobox-nav/releases) - [Commits](github/combobox-nav@v2.1.7...v2.3.1) --- updated-dependencies: - dependency-name: "@github/combobox-nav" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * test: add fallback for Element#scrollIntoView * chore: fix eslint warning --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Black <[email protected]>
1 parent 5d47efb commit 4384d73

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/test-helpers.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ if (typeof document !== 'undefined') {
3737
this.open = false
3838
})
3939
}
40+
41+
// Add a fallback for scrollIntoView if it does not exist in the test
42+
// environment.
43+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
44+
if (global.Element.prototype.scrollIntoView === undefined) {
45+
global.Element.prototype.scrollIntoView = jest.fn()
46+
}

0 commit comments

Comments
 (0)