-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: allow cypress config.port to override devServer.port for proxying assets #27677
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
f82fdf0
fix: allow cypress config.port to override devServer.port for proxyin…
brian-mann 4c54f20
changelog
lmiller1990 e90de0e
update snapshots
brian-mann f842e3f
Merge branch 'fix/config-port-overriding-devserver' of https://github…
brian-mann 8e03114
chore: bump cache version
AtofStryker c30ce10
fix cy in cy tests
ryanthemanuel ee912fa
fix tests
ryanthemanuel ed303ba
fix issue where vite config was set properly
mschile fbd86e1
additional fixes
ryanthemanuel 0bda09b
fix require
mschile 837a19c
fix launchpad tests
ryanthemanuel 078319e
Update system-tests/test/vite_dev_server_fresh_spec.ts
brian-mann 37dd857
fix additional tests
ryanthemanuel b6f8794
fix tests
ryanthemanuel c697b80
always strip ansi from stdout BEFORE calling options.onStdout
brian-mann b141c20
Merge branch 'fix/config-port-overriding-devserver' of https://github…
brian-mann da36aa5
updating configFile in react system test
mschile 5b621de
fix additional cy in cy tests
ryanthemanuel 8322f14
fix cy in cy test
ryanthemanuel 35523a2
fix tests
ryanthemanuel 3bacf34
update snapshot
brian-mann 8a60770
Merge branch 'fix/config-port-overriding-devserver' of https://github…
brian-mann 3a441c5
fix for enabling turning off stripping ansi for that 1 special report…
brian-mann 9a0481f
fix last flake
ryanthemanuel ca7bad2
fix last flake
ryanthemanuel 0a0eebd
Merge branch 'develop' into fix/config-port-overriding-devserver
ryanthemanuel 568e2a1
fix system tests
ryanthemanuel ee0fbd9
fix typo
ryanthemanuel 181b27c
let's try this again
ryanthemanuel e684546
fix tests
ryanthemanuel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Bump this version to force CI to re-create the cache from scratch. | ||
|
||
08-19-23 | ||
08-28-23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ export function makeCypressWebpackConfig ( | |
const { | ||
devServerConfig: { | ||
cypressConfig: { | ||
port, | ||
projectRoot, | ||
devServerPublicPathRoute, | ||
supportFile, | ||
|
@@ -43,6 +44,8 @@ export function makeCypressWebpackConfig ( | |
}, | ||
} = config | ||
|
||
const webpackDevServerPort = port ?? undefined | ||
|
||
debug(`Using HtmlWebpackPlugin version ${htmlWebpackPluginVersion} from ${htmlWebpackPluginImportPath}`) | ||
|
||
const optimization: Record<string, any> = { | ||
|
@@ -106,6 +109,7 @@ export function makeCypressWebpackConfig ( | |
return { | ||
...finalConfig, | ||
devServer: { | ||
port: webpackDevServerPort, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Types problem without coercing to undefined |
||
client: { | ||
overlay: false, | ||
}, | ||
|
@@ -117,6 +121,7 @@ export function makeCypressWebpackConfig ( | |
return { | ||
...finalConfig, | ||
devServer: { | ||
port: webpackDevServerPort, | ||
overlay: false, | ||
}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could just be
port
- ifport
is provided, it's a number, otherwise it'll be undefined. No need for thevitePort
variableThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it’s needed because of types. Cypress provided types are number or null. Vite is number or undefined. Switch it and it’ll yell at you.