%% generate tags start %%
#software-engineering
%% generate tags end %%
#software-engineering/react #software-engineering/testing
React testing library is a good way to test your component without spinning up the server because it basically mock the DOM.
It also work well with vitest.
It is a easier way to perform testing than [[playwright]].
> [!info] My first time using it is doing the testing in [[TrustFreight]]
## Cypress Testing Library
[Cypress Testing Library | Testing Library (testing-library.com)](https://testing-library.com/docs/cypress-testing-library/intro)
[testing-library/cypress-testing-library: 🐅 Simple and complete custom Cypress commands and utilities that encourage good testing practices. (github.com)](https://github.com/testing-library/cypress-testing-library)