From de85991f461d055f91fffdf777d1e2ed7659a849 Mon Sep 17 00:00:00 2001
From: "metabase-bot[bot]"
 <109303359+metabase-bot[bot]@users.noreply.github.com>
Date: Thu, 14 Mar 2024 09:32:00 +0100
Subject: [PATCH] Fix `@cypress/grep` types by upgrading the library to its
 latest version (#40079) (#40088)

---
 ...=> 11727-cancel-native-query-shortcut.cy.spec.ts} |  0
 e2e/tsconfig.json                                    |  7 ++++++-
 package.json                                         |  2 +-
 yarn.lock                                            | 12 ++++++------
 4 files changed, 13 insertions(+), 8 deletions(-)
 rename e2e/test/scenarios/native/reproductions/{11727-cancel-native-query-shortcut.cy.spec.js => 11727-cancel-native-query-shortcut.cy.spec.ts} (100%)

diff --git a/e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.js b/e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.ts
similarity index 100%
rename from e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.js
rename to e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.ts
diff --git a/e2e/tsconfig.json b/e2e/tsconfig.json
index ce9332acd3e..5e1dfe4eb9c 100644
--- a/e2e/tsconfig.json
+++ b/e2e/tsconfig.json
@@ -3,7 +3,12 @@
   "compilerOptions": {
     "outDir": "build",
     "baseUrl": "./",
-    "types": ["cypress", "@testing-library/cypress", "cypress-real-events"],
+    "types": [
+      "cypress",
+      "@testing-library/cypress",
+      "cypress-real-events",
+      "@cypress/grep"
+    ],
     "paths": {
       "*": ["../frontend/src/*"],
       "e2e/*": ["./*"]
diff --git a/package.json b/package.json
index 4e121a18e26..03cd4d87039 100644
--- a/package.json
+++ b/package.json
@@ -130,7 +130,7 @@
     "@babel/preset-react": "^7.23.3",
     "@babel/preset-typescript": "^7.23.3",
     "@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
-    "@cypress/grep": "^3.1.0",
+    "@cypress/grep": "^4.0.1",
     "@cypress/skip-test": "^2.6.1",
     "@emotion/babel-plugin": "^11.11.0",
     "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
diff --git a/yarn.lock b/yarn.lock
index ade237b1379..16393287862 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1296,12 +1296,12 @@
   resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
   integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
 
-"@cypress/grep@^3.1.0":
-  version "3.1.0"
-  resolved "https://registry.yarnpkg.com/@cypress/grep/-/grep-3.1.0.tgz#d055fd63a9dd59326020af90e2fe56610ea89ec6"
-  integrity sha512-ZSAwUyEw7e7Lu4KhjQLZrJDnzA04awqikj7ZcPHr+oW4wDpiVscn7VEZ/P/WRC1fBydUoZ5e24aFEPxXmKCreg==
+"@cypress/grep@^4.0.1":
+  version "4.0.1"
+  resolved "https://registry.yarnpkg.com/@cypress/grep/-/grep-4.0.1.tgz#bce679f85da286c4979bb9ffc79b2782dc5b75c6"
+  integrity sha512-i3mWy4mG6nxF7m93W0nzsMZkl0PflGa4+SygA9P92tELayYYAaRKlr07I4fo5PnwoPk1H9IEbXoMFJkhfTMxtg==
   dependencies:
-    debug "^4.3.2"
+    debug "^4.3.4"
     find-test-names "^1.19.0"
     globby "^11.0.4"
 
@@ -9225,7 +9225,7 @@ debounce@^1.2.1:
   resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5"
   integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==
 
-debug@2.6.9, debug@3.2.7, debug@4, debug@4.3.4, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.8, debug@^3.0.0, debug@^3.1.0, debug@^3.2.6, debug@^3.2.7, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:
+debug@2.6.9, debug@3.2.7, debug@4, debug@4.3.4, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.8, debug@^3.0.0, debug@^3.1.0, debug@^3.2.6, debug@^3.2.7, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.3, debug@^4.3.4:
   version "4.3.4"
   resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
   integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
-- 
GitLab