diff --git a/package-lock.json b/package-lock.json index 4dd94743758..23a51c6ec7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@primer/react", - "version": "36.5.0", + "version": "36.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@primer/react", - "version": "36.5.0", + "version": "36.6.0", "license": "MIT", "dependencies": { "@github/combobox-nav": "^2.1.5", @@ -4161,9 +4161,9 @@ "dev": true }, "node_modules/@github/combobox-nav": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@github/combobox-nav/-/combobox-nav-2.1.7.tgz", - "integrity": "sha512-Webx0W5iTpkk5Chy9dB/1BEUORQ0qrwui8HaaVBiy75W2VOJg96WTuKj1rXENAJ3XTMhdEF53bn0LYfvP0EKvg==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@github/combobox-nav/-/combobox-nav-2.3.1.tgz", + "integrity": "sha512-gwxPzLw8XKecy1nP63i9lOBritS3bWmxl02UX6G0TwMQZbMem1BCS1tEZgYd3mkrkiDrUMWaX+DbFCuDFo3K+A==" }, "node_modules/@github/details-menu-element": { "version": "1.0.13", diff --git a/src/utils/test-helpers.tsx b/src/utils/test-helpers.tsx index 05b286d06b0..056c4c17e76 100644 --- a/src/utils/test-helpers.tsx +++ b/src/utils/test-helpers.tsx @@ -37,3 +37,10 @@ if (typeof document !== 'undefined') { this.open = false }) } + +// Add a fallback for scrollIntoView if it does not exist in the test +// environment. +// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition +if (global.Element.prototype.scrollIntoView === undefined) { + global.Element.prototype.scrollIntoView = jest.fn() +}