v0.0.5: Comprehensive Test Suite
π§ͺ Major Update: Comprehensive Test Suite
This release adds a robust test infrastructure and fixes routing bugs discovered during testing.
β¨ Highlights
- 67+ passing tests covering all core functionality
- 98.5% success rate with <2 second execution time
- 2 routing bugs fixed that were discovered during testing
- New testing documentation page
- 80%+ code coverage on utility functions
π§ͺ Test Infrastructure
- Test Runner: Vitest with happy-dom
- Test Types: Unit tests (integration tests planned)
- Execution Time: ~1 second for full suite
- Coverage Tool: Built-in v8 coverage
π Bugs Fixed
- Wildcard route priority - Routes like
/*now properly sort to end of route list - Wildcard path resolution - Wildcard routes now correctly match URLs
- Test spy cleanup - Console spies no longer interfere across tests
π Test Coverage
- β Route matching and parameter extraction
- β Path utilities (join, constructPath, isActive)
- β Component resolution (lazy and eager loading)
- β Route validation and priority sorting
- β Location handling and navigation
- β Layout collection and hook configuration
π Documentation
- Added
/docs/testingpage with full test documentation - Updated README with testing section
- Created OpenSpec testing infrastructure spec
- Documented testing best practices
π Running Tests
# Run all tests
bun run test:run
# Watch mode
bun run test
# With coverage
bun run test:coverageπ Migration Guide
No breaking changes - this release is fully backward compatible. No migration needed.
π¦ What's Next
- Integration tests for complete routing flows
- Continuous integration (GitHub Actions)
- Additional edge case coverage
- E2E tests (optional future enhancement)
Full Changelog: v0.0.2...v0.0.5