Connect, collaborate, and grow with a community of TypeScript developers
Running E2E Tests
Date: 2023-10-17
Status: accepted
Context
TypeHero utilizes Playwright for E2E testing. Playwrite enables reliable, end-to-end tesing for modern web apps. Here is a link to their docs.
Decision
If you would like to write a test, please follow the steps below:
- Navigate to the folder
apps/web/tests/e2e - Create a new file with the name of your test. For example,
my-test.test.ts. - To run the test, run the following command
npx playwright test.
Tests output will be displayed in the terminal by default, to enable UI mode, where you can see a visual output, refer to these docs.
Consequences
This decision will allow us to have a reliable test suite that will ensure that our app is working as expected.