Skip to content

test(frontend): enable PokerTable render test with jsdom

AYYILDIZ YIGIT requested to merge feature/login-ui-yigit into develop

📌 Description

This merge request enables the unit test for the PokerTable component in the frontend.

The previously disabled test file has been reactivated and configured to run correctly with Vitest using the jsdom environment.

Changes included:

  • Renamed PokerTable.test.tsx.disabled to PokerTable.test.tsx
  • Added jsdom environment for React component testing
  • Verified that the PokerTable component renders without crashing
  • All frontend tests pass successfully

This ensures the PokerTable component is covered by basic frontend tests.


🔗 Lien vers l'issue

N/A


Type de changement

  • Feature (nouvelle fonctionnalité)
  • Fix (correction de bug)
  • Refactor (pas de changement fonctionnel)
  • Docs (documentation)
  • Chore (maintenance technique)
  • Hotfix (urgence)

🧪 Comment tester

  1. Go to the client directory cd client
  2. Run the tests npm run test
  3. Verify that all tests pass, including:

Checklist

  • Tests unitaires ajoutés/mis à jour
  • Documentation mise à jour
  • Pipeline CI vert
  • Relu par un reviewer

👥 Reviewers requis

  • Backend (@azra, @soheil)
  • Frontend (@mohamed, @yigit)
  • Sécurité (@linda, @massi)
  • BDD (@elhadj)

🚨 Impact potentiel

  • Breaking change
  • Performance
  • Sécurité

Merge request reports