Skip to content

Add unit tests for onboarding funnel provider - #581

Merged
A6dulmalik merged 1 commit into
MindBlockLabs:mainfrom
Tinna23:issue/561-funnel-tests
Jul 21, 2026
Merged

Add unit tests for onboarding funnel provider#581
A6dulmalik merged 1 commit into
MindBlockLabs:mainfrom
Tinna23:issue/561-funnel-tests

Conversation

@Tinna23

@Tinna23 Tinna23 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Description

Write unit tests for GetOnboardingFunnelProvider covering the happy path, an empty-data edge case, and a boundary date-range case, using mocked repositories.

Changes

  • Add GetOnboardingFunnelProvider implementation
  • Add get-onboarding-funnel.provider.spec.ts with 3 test cases
  • Add FunnelResult and FunnelStage interfaces
  • Create analytics module infrastructure (module, entity, controller, providers)

Acceptance Criteria

  • At least 3 test cases: happy path, empty data, boundary dates
  • Repositories are mocked (no real DB connection in unit tests)
  • Tests run under npm test with no manual setup

Closes #561

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
mind-block-app-frontend Skipped Skipped Jul 21, 2026 10:08am

@Tinna23
Tinna23 force-pushed the issue/561-funnel-tests branch from b3120e5 to 3796966 Compare July 21, 2026 10:06
Write unit tests for GetOnboardingFunnelProvider covering the happy
path with all 5 funnel stages, an empty-data edge case where all counts
are zero, and a boundary date-range filtering case. Repositories are
mocked with no real DB connection required.

Closes MindBlockLabs#561
@Tinna23
Tinna23 force-pushed the issue/561-funnel-tests branch from 3796966 to 0c793be Compare July 21, 2026 10:08
@A6dulmalik
A6dulmalik merged commit 0f47ae7 into MindBlockLabs:main Jul 21, 2026
7 of 8 checks passed
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 unit tests for onboarding funnel provider

2 participants