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

Creating test structure for frontend #36

Open
6 of 7 tasks
swoopertr opened this issue May 14, 2024 · 1 comment
Open
6 of 7 tasks

Creating test structure for frontend #36

swoopertr opened this issue May 14, 2024 · 1 comment
Assignees
Labels
frontend Frontend task/issue

Comments

@swoopertr
Copy link
Contributor

swoopertr commented May 14, 2024

Set up Vitest for Unit and Integration Tests

  • make comparison for Vitest and Cypress

  • Install Vitest: Run npm install vitest --save-dev to add Vitest to your project.

  • Configure Vitest: Modify your vite.config.js to include the Vitest configuration.

  • Write Tests: create couple tests just for example

Set up Cypress for End-to-End Tests

  • Install Cypress: Execute npm install cypress --save-dev to install Cypress.
  • Interactive Test Runner: Use the Cypress interactive test runner for writing and debugging tests.
  • Configure for Vite: Set up Cypress to work with Vite for component testing.
@swoopertr swoopertr changed the title Creating test structure frontend Creating test structure for frontend May 14, 2024
@uparkalau uparkalau added the frontend Frontend task/issue label May 27, 2024
@swoopertr
Copy link
Contributor Author

https://vitest.dev/guide/comparisons.html
vitest : for headlesss component testing lighting fast.
cypress : E2E testing for browser and visible component testing.

@uparkalau uparkalau assigned uparkalau and unassigned swoopertr Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend task/issue
Projects
None yet
Development

No branches or pull requests

2 participants