Skip to content
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

Add Cypress for end-to-end testing #37

Open
JessicaSachs opened this issue Apr 21, 2022 · 3 comments
Open

Add Cypress for end-to-end testing #37

JessicaSachs opened this issue Apr 21, 2022 · 3 comments

Comments

@JessicaSachs
Copy link

JessicaSachs commented Apr 21, 2022

It would be good to have some tests in the default starter. The Nuxt team is going to write a Nuxt + Vitest package for unit testing, but until that is done, it looks like end-to-end testing is the only way to go!

I did a 9.0 version of this locally, but I believe we should wait until Cypress 10.0 because of cypress.config.ts and the removal of the plugins file -- which currently does not support typescript or mjs.

https://twitter.com/antfu7/status/1516988226665287680?s=20&t=vSANZvO3kReXgW5v9tmciw

@pi0
Copy link
Collaborator

pi0 commented Apr 21, 2022

Hi @JessicaSachs! It is good idea to have more E2E testing support with @nuxt/test-utils! It has built-in support browser for playwright at the moment.

@JessicaSachs
Copy link
Author

JessicaSachs commented Apr 21, 2022

Ah! OK, I didn't know that was on your radar already! 👍

What are you thinking long-term? We can talk in Discord if you'd like. This is a longer-form chat.

@itpropro
Copy link

itpropro commented May 2, 2022

Hi @JessicaSachs! It is good idea to have more E2E testing support with @nuxt/test-utils! It has built-in support browser for playwright at the moment.

Thanks for linking that package, exactly what I needed :) I and most of my clients prefer Playwright anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants