Skip to content

feat(dashboard): add package-level test coverage (issue #52)#62

Open
Sus-Nexus07 wants to merge 2 commits into
Adamantine-guild:mainfrom
Sus-Nexus07:feat/issue-52-dashboard-tests
Open

feat(dashboard): add package-level test coverage (issue #52)#62
Sus-Nexus07 wants to merge 2 commits into
Adamantine-guild:mainfrom
Sus-Nexus07:feat/issue-52-dashboard-tests

Conversation

@Sus-Nexus07

Copy link
Copy Markdown

Closes #52

 Adds package-level unit tests for dashboard services.

 - activity-storage: addEvent, getEvents, isDuplicate, memory cap
 - activity-service: createEvent, getEvents filtering, typed helpers
 - webhook-mapper: all 6 supported event types + unknown types + timestamp conversion
 - metrics: normal/empty datasets + edge cases
 - permissions: hasPermission, canManage*, assertPermission, PermissionDeniedError, role matrix
 - fixtures: test data kept separate from production mock-data.ts
 - package.json: switched test runner to tsx

 All 120 tests pass. No network calls, no browser required.

@Lakes41 Lakes41 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job, Do resolve conflicts @Sus-Nexus07

@Lakes41

Lakes41 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

@Sus-Nexus07 Do resolve conflicts, I might have to take you off when it 24 hours

@Sus-Nexus07

Sus-Nexus07 commented Jun 25, 2026 via email

Copy link
Copy Markdown
Author

@Sus-Nexus07 Sus-Nexus07 force-pushed the feat/issue-52-dashboard-tests branch from 740b39f to a8f4850 Compare June 25, 2026 09:36
@Sus-Nexus07

Copy link
Copy Markdown
Author

@Lakes41 conflicts resolved, ready for review!

@Sus-Nexus07 Sus-Nexus07 requested a review from Lakes41 June 25, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add package-level test coverage for dashboard services

2 participants