You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: support vite v5 [run ci]
* make sure to use correct path in windows if no cypress public path is provided [run ci]
* update snapshot [run ci]
* update docs on devServerPublicPathRoute for vite-dev-server
* update comments
* refactor resolveConfig test
---------
Co-authored-by: Jennifer Shehane <[email protected]>
Copy file name to clipboardExpand all lines: cli/CHANGELOG.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,12 @@
1
1
<!-- See the ../guides/writing-the-cypress-changelog.md for details on writing the changelog. -->
2
-
## 13.9.1
2
+
## 13.10.0
3
3
4
4
_Released 5/21/2024 (PENDING)_
5
5
6
+
**Features:**
7
+
8
+
- Added support for `vite``v5` to `@cypress/vite-dev-server`. Addresses [#28347](https://github.com/cypress-io/cypress/issues/28347).
9
+
6
10
**Bugfixes:**
7
11
8
12
- Fixed an issue where orphaned Electron processes were inadvertently terminating the browser's CRI client. Fixes [#28397](https://github.com/cypress-io/cypress/issues/28397). Fixed in [#29515](https://github.com/cypress-io/cypress/pull/29515).
Copy file name to clipboardExpand all lines: npm/vite-dev-server/README.md
+16-1
Original file line number
Diff line number
Diff line change
@@ -56,10 +56,25 @@ We then merge the sourced config with the user's vite config, and layer on our o
56
56
| <= v2 | <= v9 |
57
57
| >= v3 | >= v10 |
58
58
59
+
#### `devServerPublicPathRoute` for Vite v5
60
+
61
+
If using Vite version 5, setting `devServerPublicPathRoute` may be needed if directly referencing public path url assets in components under test. This is due to Cypress using its own public path, `/__cypress/src`, when running component tests. This can be configured within the `component` namespace below if you wish you set your public path to be the same as your app:
62
+
63
+
```ts
64
+
import { defineConfig } from'cypress'
65
+
66
+
exportdefaultdefineConfig({
67
+
component: {
68
+
// If wanting a publicPath the same as the default in Vite 5
0 commit comments