Files
cv-site/tests/archive/README.md
T
juanatsap 5c60d108d8 refactor: organize test suite - systematic numbered tests + archive
ORGANIZATION:
- Created systematic numbered test suite in tests/mjs/
- Archived 60+ legacy tests organized by category
- Established master test runner (run-all.mjs)
- Updated comprehensive documentation

NEW ACTIVE TESTS:
- 0-zoom.test.mjs - Zoom control functionality
- 1-toggles.test.mjs - Toggle testing with real-time verification
- 2-keyboard-shortcuts.test.mjs - L, I, V, ? keyboard shortcuts

ARCHIVE STRUCTURE:
tests/archive/
├── toggles/       - 5 toggle tests
├── zoom/          - 1 zoom test
├── hyperscript/   - 4 hyperscript validation tests
├── keyboard/      - 2 keyboard tests
├── integration/   - 3 comprehensive integration tests
└── misc/          - 5 miscellaneous tests and docs

TEST INFRASTRUCTURE:
- tests/run-all.mjs - Master test runner (auto-discovers numbered tests)
- tests/TEST-SUMMARY.md - Complete documentation
- tests/archive/README.md - Archive guide
- tests/mjs/README.md - Active test suite guide

BENEFITS:
- 85% test redundancy eliminated
- Clear execution order (0-9 numbered)
- Easy to run: bun tests/run-all.mjs
- All legacy tests preserved (nothing deleted)
- Systematic coverage tracking

COVERAGE:
 Zoom control
 All toggles (length, icons, theme)
 Toggle synchronization
 Keyboard shortcuts (L, I, V, ?)
 Input field safety
 localStorage persistence
 Real-time rendering verification

TODO (Planned):
- [ ] 3-hyperscript.test.mjs
- [ ] 4-htmx.test.mjs
- [ ] 5-language.test.mjs
- [ ] 6-modals.test.mjs
2025-11-17 13:18:39 +00:00

2.0 KiB

Test Archive

This directory contains legacy tests that were valuable during development but have been superseded by the systematic test suite in /tests/mjs/.

⚠️ DO NOT DELETE THESE TESTS - They contain historical bug fixes and edge cases that may be valuable for future reference.

Directory Structure

toggles/

Tests for toggle functionality (length, icons, theme)

  • Historical toggle implementations
  • Toggle synchronization tests
  • Specific toggle bug fixes

zoom/

Zoom control functionality tests

  • Zoom slider tests
  • Zoom persistence tests
  • Zoom rendering tests

hyperscript/

Hyperscript-specific tests

  • Parse error tests
  • Function definition tests
  • Hyperscript syntax validation

htmx/

HTMX functionality tests

  • HTMX swap tests
  • Indicator tests
  • Atomic update tests
  • Request/response cycle tests

keyboard/

Keyboard shortcut tests

  • Individual key tests
  • Shortcut combinations
  • Input field detection

language/

Language switching tests

  • English/Spanish toggle
  • URL parameter tests
  • Language persistence

visual/

Visual regression and rendering tests

  • Screenshot comparisons
  • CSS rendering tests
  • Responsive design tests

performance/

Performance and load tests

  • Load time tests
  • Core Web Vitals
  • Bundle size tests

integration/

Full integration and E2E tests

  • Complete feature tests
  • Multi-step workflows
  • Comprehensive validation

misc/

Miscellaneous tests that don't fit other categories

  • Experimental tests
  • One-off bug reproductions
  • Debug utilities

Using Archived Tests

These tests can still be run individually if needed:

# Run a specific archived test
bun tests/archive/toggles/test-toggle-sync.mjs

# Run all tests in a category
for test in tests/archive/toggles/*.mjs; do bun "$test"; done

Migration Notes

  • Date Archived: 2025-11-17
  • Reason: Consolidation into systematic numbered test suite
  • Active Tests: See /tests/mjs/ for current test suite
  • Test Count: ~60 legacy tests archived