mahula 8d52810449 test(lib): add unit tests for hashtag auto-creation feature
Add comprehensive tests for the useTags hook covering:
- Tag state management (initialization, adding, deduplication)
- API integration (persistence, existing tag handling, stale closure fix)
- Hashtag detection & auto-creation (extraction, skipping known tags, deduplication)
- Tag retrieval (text matching, offers/needs tags, case-insensitive matching)

15 test cases covering the hashtag auto-creation feature addressed in PR #673.
2026-01-24 10:59:48 +01:00
..