No testing framework or test coverage #3

Closed
opened 2026-05-11 05:54:54 +00:00 by Mark · 0 comments
Owner

Description

The project has no testing dependencies, test files, or test configuration. This includes:

  • No unit tests (Vitest, Jest)
  • No component tests (React Testing Library)
  • No E2E tests (Playwright, Cypress)
  • No test scripts in package.json

Impact

  • No regression safety when refactoring the complex ScrollTrigger/Three.js interactions
  • The 3D scroll animations (HeroSection, MapSection) are fragile and untestable
  • The karma system logic, once implemented, will have no validation
  • PR reviews lack automated confidence

Suggested Approach

  1. Install vitest + @testing-library/react + @testing-library/jest-dom
  2. Add a test script to package.json
  3. Write unit tests for src/lib/utils.ts (the cn() function)
  4. Write component smoke tests for each section
  5. Consider playwright for visual regression testing of the 3D canvas (screenshots)
  • package.json — no test script or test deps
  • src/lib/utils.ts — good candidate for first unit test
  • src/sections/HeroSection.tsx — complex 3D canvas that should not regress
  • src/sections/MapSection.tsx — complex ScrollTrigger timeline
## Description The project has no testing dependencies, test files, or test configuration. This includes: - No unit tests (Vitest, Jest) - No component tests (React Testing Library) - No E2E tests (Playwright, Cypress) - No test scripts in `package.json` ## Impact - No regression safety when refactoring the complex ScrollTrigger/Three.js interactions - The 3D scroll animations (HeroSection, MapSection) are fragile and untestable - The karma system logic, once implemented, will have no validation - PR reviews lack automated confidence ## Suggested Approach 1. Install `vitest` + `@testing-library/react` + `@testing-library/jest-dom` 2. Add a `test` script to `package.json` 3. Write unit tests for `src/lib/utils.ts` (the `cn()` function) 4. Write component smoke tests for each section 5. Consider `playwright` for visual regression testing of the 3D canvas (screenshots) ## Related Files - `package.json` — no test script or test deps - `src/lib/utils.ts` — good candidate for first unit test - `src/sections/HeroSection.tsx` — complex 3D canvas that should not regress - `src/sections/MapSection.tsx` — complex ScrollTrigger timeline
Mark closed this issue 2026-05-11 14:02:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/freshfind-marketmap#3
No description provided.