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

Set up Vitest for unit tests #309

Open
Cahllagerfeld opened this issue Feb 25, 2023 · 5 comments
Open

Set up Vitest for unit tests #309

Cahllagerfeld opened this issue Feb 25, 2023 · 5 comments

Comments

@Cahllagerfeld
Copy link
Member

Description

Do we need to set up Unit tests?

If we want, we should definitely use Vitest, as it best integrates with Sveltekit and other Vite apps.

Screenshots

No response

Additional information

No response

@shubhamjena18
Copy link

@Cahllagerfeld , yes Vitest is a great option for unit tests. But there is another option called Playwright. Can we have a comparision and choose the best one ?

@Cahllagerfeld
Copy link
Member Author

Youre right Playwright is out there and we already use it in the project. I think these two setups solve different problems though:

  • Vitest is a framework for running unit tests, while
  • Playwright is for running end-to-end tests

We should evaluate Vitest for unit tests while keeping Playwright for end-to-end tests.

@shubhamjena18
Copy link

ok great. Can I work on implementing vitest in this project.

@Cahllagerfeld
Copy link
Member Author

sure 👍

@Cahllagerfeld Cahllagerfeld changed the title [Discussion] Evaluate Vitest for unit tests Set up Vitest for unit tests Jun 11, 2023
@shubhamjena18
Copy link

@Cahllagerfeld I am stuck in some personal issues , so I won't be able to work on this task for some time .
Can you re assign the task to someone who is interested .

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

No branches or pull requests

2 participants