- This 1. part is intended to explain test assertions, show examples of unit tests and also how to automate tests.
- 2. part shows how to test different FE libraries
-
Tests are executed automatically on GitHub using checks.yml workflow
-
Tests are executed automatically before every
git push
to the remote repository via pre-push Git Hook using Husky -
For every
git commit
there is automatically being run (via pre-commit) ESLint that might do some more code improvements and also format code using Prettier -
All git message are validated by commitlint via commit-msg
- If your
git commit -m "..."
fails withhusky - commit-msg script failed (code 1)
, please refer to Conventional Commits and read how professionals write commit messages
- If your
- Run
npm i
in the project root to install vitest
- playground - Explains and gives examples of how basic assertions works
- utils - Includes code samples with test coverage and some practical exercises
Please check out list of examples here.