Testing
This document outlines the testing standards and best practices that we follow in our projects. Our primary focus is on end-to-end (E2E) testing because it validates the application as a whole, ensuring that all components function together as expected.
We utilize Playwright, a Node.js library offering a high-level API for controlling web browsers.
Running Tests
To run tests, use the following commands:
pnpm test:e2e: Executes the complete suite of end-to-end tests.pnpm test:e2e:ui: Runs the end-to-end tests with the Playwright UI, providing a visual interface to monitor the tests in action.
Writing Tests
Our tests folder mirrors the application's modular design (refer to Architecture). Each module has a dedicated testing directory containing its respective test files.
We adhere to common testing principles as outlined in the following resources: