jules: merged .jules and .Jules directories

This commit is contained in:
Melvin Ragusa
2026-01-24 11:50:38 +01:00
parent 89b24e1256
commit b80db420c2

4
.Jules/sentinel.md Normal file
View File

@@ -0,0 +1,4 @@
## 2025-02-12 - Missing Test Cleanup
**Vulnerability:** Tests in `src/pages/__tests__/Contact.test.tsx` were failing with duplicate elements because `cleanup()` was not being called between tests.
**Learning:** `testing-library/react` usually handles cleanup automatically, but in this environment/setup, explicit `cleanup()` and `document.body.innerHTML = ''` in `afterEach` is required to prevent DOM state leakage.
**Prevention:** Always include explicit `cleanup()` in `afterEach` blocks when writing component tests in this repository.