Testing
We will write just enough tests, if something is hairy test it if you are just testing the framework we are using or trying to get to 100% on everything stop.
We do not need every single line of code to be tested just enough tests to give us confidence that what is being shipped works.
Unit & Integration Tests
We will use Jest for our unit and integration tests.
Keep these small and focused and ideally so they run in less than 10 minutes ( you can parallelise them if needed).
Ideally have one happy path test for each major piece of functionality this is:
- A good idea anyway
- Means it is quicker to write the next test if we find a bug
End to end tests
We will use Playwright for our end to end tests, keeping these as lean as possible.
Monitoring
Checkly
We will use Playwright along with checkly to monitor our systems as the Playwright supports give us super flexibility on our checks.