diff --git a/.yarn/patches/@wdio-browser-runner-npm-8.15.9-c3dd0d4a69.patch b/.yarn/patches/@wdio-browser-runner-npm-8.15.9-c3dd0d4a69.patch
new file mode 100644
index 0000000000..546ce4bb9c
--- /dev/null
+++ b/.yarn/patches/@wdio-browser-runner-npm-8.15.9-c3dd0d4a69.patch
@@ -0,0 +1,26 @@
+diff --git a/build/vite/utils.js b/build/vite/utils.js
+index 3373a06d6b81f85c828bc9b4fa2fdd09e5a3b0ad..7098662a8cb9e72c6c24023b1988fa56d2190aa7 100644
+--- a/build/vite/utils.js
++++ b/build/vite/utils.js
+@@ -46,6 +46,11 @@ export async function getTemplate(options, env, spec, p = process) {
+ catch (err) {
+ log.error(`Failed to setup source-map-support: ${err.message}`);
+ }
++
++ const mochaPath = await resolve('mocha', `${rootFileUrl}/node_modules`);
++ const mochaCSSHref = path.join(url.fileURLToPath(path.dirname(mochaPath)), 'mocha.css');
++ const mochaJSSrc = path.join(url.fileURLToPath(path.dirname(mochaPath)), 'mocha.js');
++
+ return /* html */ `
+
+
+@@ -78,7 +83,8 @@ export async function getTemplate(options, env, spec, p = process) {
+ return mod
+ }
+
+-
++
++
+ ${sourceMapScript}
+