Skip to content

Commit 982ee5e

Browse files
committed
Update patch of @cypress/vite-dev-server
This now supports the latest version of said package.
1 parent 4d111e3 commit 982ee5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
diff --git a/node_modules/@cypress/vite-dev-server/client/initCypressTests.js b/node_modules/@cypress/vite-dev-server/client/initCypressTests.js
2-
index f0602c1..d7f05a0 100644
2+
index 0fbff85..0799f57 100644
33
--- a/node_modules/@cypress/vite-dev-server/client/initCypressTests.js
44
+++ b/node_modules/@cypress/vite-dev-server/client/initCypressTests.js
5-
@@ -36,7 +36,7 @@ if (supportFile) {
5+
@@ -51,7 +51,7 @@ if (supportFile) {
66
// So we use the "@fs" bit to load the test file using its absolute path
77
// Normalize path to not include a leading slash (different on Win32 vs Unix)
88
const normalizedAbsolutePath = CypressInstance.spec.absolute.replace(/^\//, '')
9-
-const testFileAbsolutePathRoute = `${devServerPublicPathRoute}/@fs/${normalizedAbsolutePath}`
10-
+const testFileAbsolutePathRoute = `${devServerPublicPathRoute}/@fs/${normalizedAbsolutePath}?import`
9+
-const testFileAbsolutePathRoute = `${devServerPublicPathBase}/@fs/${normalizedAbsolutePath}`
10+
+const testFileAbsolutePathRoute = `${devServerPublicPathBase}/@fs/${normalizedAbsolutePath}?import`
1111

1212
/* Spec file import logic */
1313
// We need a slash before /src/my-spec.js, this does not happen by default.

0 commit comments

Comments
 (0)