Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use vite dev during e2e dev #39

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

Closed
Akryum wants to merge 2 commits into vuejs:main from Akryum:patch-1
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion template/config/cypress/package.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scripts": {
"test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
"test:e2e": "start-server-and-test 'vite --port 5050' http-get://127.0.0.1:5050/ 'cypress open'",
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
},
"devDependencies": {
Expand Down
11 changes: 7 additions & 4 deletions utils/generateReadme.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,15 @@ ${getCommand(packageManager, 'test:unit')} # or \`${getCommand(
npmScriptsDescriptions += `
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)

\`\`\`sh
${getCommand(packageManager, 'test:e2e')}
\`\`\`

Headless testing:

\`\`\`sh
${getCommand(packageManager, 'build')}
${getCommand(packageManager, 'test:e2e')} # or \`${getCommand(
packageManager,
'test:e2e:ci'
)}\` for headless testing
${getCommand(packageManager, 'test:e2e:ci')}
\`\`\`
`
}
Expand Down

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /