Overview of Rete.js testing strategy
Rete.js employs two types of testing:
- Unit Tests: Used for testing individual modules within a package for speed.
- E2E Tests: Used for comprehensive product testing from the user's perspective, powered by Playwright and integrated into the
rete-qapackage.
Guidelines for writing tests include keeping them simple, testing one thing at a time, covering edge cases, and using code coverage metrics as a reference rather than a primary conclusion.