mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
- Create centralized TEST_IDS constants to eliminate 200+ magic string occurrences - Create FIXTURES for common test data to reduce 47+ duplicate definitions - Add setupTestEnvironment() helper to standardize cleanup patterns (36+ occurrences) - Export utilities from vitestSetup.ts for easy access - Add comprehensive README with usage examples This is Phase 1 (Quick Wins) of the testing infrastructure refactor. Estimated impact: 30-50% reduction in test boilerplate for new tests. Related analysis documents: TESTING_ANALYSIS_README.md, ANALYSIS_SUMMARY.txt