Skip to content

[MEDIUM] Landing Page: Test coverage config missing components/, sections/, i18n/ #414

@JeremyDev87

Description

@JeremyDev87

Problem

apps/landing-page/vitest.config.ts:21-26 coverage include is missing components/**, sections/**, and i18n/**.

Current Coverage Scope

  • widgets/**/*.{ts,tsx}
  • app/**/*.{ts,tsx}
  • hooks/**/*.ts
  • lib/**/*.ts
  • components/**/*.{ts,tsx} ❌ (Header, Footer, CookieConsent, etc.)
  • sections/**/*.{ts,tsx} ❌ (Hero, Problem, Solution, FAQ)
  • i18n/**/*.ts

Affected Files

  • apps/landing-page/vitest.config.ts (lines 21-26)

Solution

include: [
  'widgets/**/*.{ts,tsx}',
  'app/**/*.{ts,tsx}',
  'hooks/**/*.ts',
  'lib/**/*.ts',
  'components/**/*.{ts,tsx}',  // add
  'sections/**/*.{ts,tsx}',     // add
  'i18n/**/*.ts',               // add
],
exclude: [
  '**/*.spec.{ts,tsx}',
  '**/*.test.{ts,tsx}',
  'components/ui/**',  // exclude shadcn/ui
],

Testing

  1. Run vitest --coverage and verify components, sections, i18n appear in report

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions