From bde0a28f0f50c7af3e9246531518360043a126bc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 01:44:47 +0000 Subject: [PATCH 1/2] Update dependency vaul to ^0.9.0 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2d6b42fb..b2635957 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "@radix-ui/react-tooltip": "^1.0.6", "classnames": "^2.3.2", "ts-xor": "^1.3.0", - "vaul": "^0.7.0" + "vaul": "^0.9.0" }, "peerDependencies": { "@fontsource/inconsolata": "^5", diff --git a/yarn.lock b/yarn.lock index 045c12c6..c7891753 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8250,10 +8250,10 @@ vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== -vaul@^0.7.0: - version "0.7.2" - resolved "https://registry.yarnpkg.com/vaul/-/vaul-0.7.2.tgz#10594441989d274ffd8b91720e2218bb7b23aec5" - integrity sha512-pdVwdV93YNZnm07ix2lcq8Xmohto9ExNDLiZk3oo33lIbxl9Yx2WvPOADvVNHxoOO8nzE87M2RUgXD1GuaWxMw== +vaul@^0.9.0: + version "0.9.1" + resolved "https://registry.yarnpkg.com/vaul/-/vaul-0.9.1.tgz#3640198e04636b209b1f907fcf3079bec6ecc66b" + integrity sha512-fAhd7i4RNMinx+WEm6pF3nOl78DFkAazcN04ElLPFF9BMCNGbY/kou8UMhIcicm0rJCNePJP0Yyza60gGOD0Jw== dependencies: "@radix-ui/react-dialog" "^1.0.4" From 1811113816e9cb183c6924d60a42ff89cb55979d Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 2 Aug 2024 14:17:17 -0400 Subject: [PATCH 2/2] Fix tests --- src/components/Menu/Menu.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Menu/Menu.test.tsx b/src/components/Menu/Menu.test.tsx index bc936d0c..571119ef 100644 --- a/src/components/Menu/Menu.test.tsx +++ b/src/components/Menu/Menu.test.tsx @@ -26,6 +26,9 @@ import userEvent from "@testing-library/user-event"; import { getPlatform } from "../../utils/platform"; vi.mock("../../utils/platform", () => ({ getPlatform: vi.fn(() => "other") })); +vi.spyOn(window, "matchMedia").mockReturnValue({ + matches: false, +} as unknown as MediaQueryList); async function withPlatform( platform: ReturnType,