Repository navigation
test: use available API ports in browser snapshots - #3006
Merged
Merged
Conversation
This was referenced Oct 12, 2026
fengmk2
marked this pull request as ready for review
October 12, 2026 09:16
Member
|
There's a simpler solution: voidzero-dev/vite-task#838 |
Member
Author
|
@wan9chi done |
fengmk2
force-pushed
the
test/browser-snapshot-ports
branch
from
October 12, 2026 09:35
4b34288 to
035f081
Compare
cpojer
approved these changes
Oct 12, 2026
wan9chi
approved these changes
Oct 12, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The browser snapshots use Vitest's fixed API port, which Windows can reserve. This causes intermittent
EACCESfailures.Set
test.api.portto0in a post-configuration hook, after Vitest resolves its defaults. The OS selects an available port when the server binds. This follows vite-task#838 and preserves the snapshot assertions.