Problem: It’s unclear if a test is a unit, integration, or e2e test


Problem: It’s unclear if a test is a unit, integration, or e2e test.

Solutions:
1. Location: Colocate unit tests with the file under test. Store integration and e2e tests in /tests.

2. Naming convention:
unit: *.test.ts
e2e: *.e2e.spec.ts
integration (mocked): *.mock.spec.ts

View original on X