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

Introduce testing of components #252

Open
matus-vacula opened this issue Oct 29, 2024 · 0 comments
Open

Introduce testing of components #252

matus-vacula opened this issue Oct 29, 2024 · 0 comments

Comments

@matus-vacula
Copy link
Collaborator

matus-vacula commented Oct 29, 2024

We should fix or remove the current only existing test: src/App.test.jsx
And instead create at least 1 test file for 1 component, to be placed next to it.

the test runner (vitest) will run all js/x/ts files that have .test. in their name (also .spec. but don't use that).
Or would recommend to copy the old src/App.test.jsx tests and start from their with your component of choice

AC:

  • we have some tests for at least 1 component
  • tests are passing on PRs

https://testing-library.com/docs/react-testing-library/intro/

@orYoffe orYoffe changed the title Introduce testing setup Introduce testing of components Oct 31, 2024
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

1 participant