
 RUN  v5.1.0 /home/athapa/patriothacks-wt/fix-miniapp-gaps-and-demo-video-wave1

 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > picks the mentor with the highest skill+dependency coverage for a need 2ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > weights exact coverage by the real dependents-count centrality from computeDependentsCounts 0ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > breaks an equal-score tie deterministically by ascending mentor account id 8ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > returns an explicit no-match, not a crash or an arbitrary pick, when no mentor covers any required skill 0ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > never excludes a mentor's own account from needing a DIFFERENT skill, but never matches an account to itself 0ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > handles an empty mentors array without crashing: every need resolves to no-match 0ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > handles an empty needs array without crashing: returns an empty result 0ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > handles both mentors and needs empty without crashing 0ms
 ✓ src/lib/mentorMatching.test.ts > matchApprenticesToMentors > returns no-match for a need with an empty neededSkills list 0ms
 ✓ src/lib/mentorMatching.test.ts > buildMentorProfilesFromReviews > promotes an account to a mentor profile for a skill once its latest review is Good or Easy 0ms
 ✓ src/lib/mentorMatching.test.ts > buildMentorProfilesFromReviews > uses only the most recent review per (learner, skill) pair, ignoring unrelated payloads 0ms
 ✓ src/lib/mentorMatching.test.ts > buildMentorProfilesFromReviews > returns no profiles when the entries are empty 0ms
 ✓ src/lib/mentorMatching.test.ts > buildApprenticeNeedsFromReviews > lists an at-risk skill as a need when the account's latest review of it is Again or Hard 0ms
 ✓ src/lib/mentorMatching.test.ts > buildApprenticeNeedsFromReviews > excludes a skill once its latest review reaches Good or Easy 0ms
 ✓ src/lib/mentorMatching.test.ts > buildApprenticeNeedsFromReviews > excludes a skill not in the real at-risk set 0ms
 ✓ src/miniapps/mentor/MentorScreen.test.tsx > MentorScreen (QA failure path - seed-panel data source empty) > renders an empty state instead of a fabricated population number when no skill-holder data is present 65ms
 ✓ src/miniapps/mentor/MentorScreen.test.tsx > MentorScreen (QA happy path - real seed + FSRS fixture data) > renders an at-risk skill as a feed card with its real holder count and dependents count, excludes a well-held skill 26ms
 ✓ src/miniapps/mentor/MentorScreen.test.tsx > MentorScreen (QA happy path - real seed + FSRS fixture data) > logs a real review rating and updates the next-review date from ts-fsrs's own algorithm output 63ms
 ✓ src/miniapps/mentor/MentorScreen.test.tsx > MentorScreen (apprentice-to-mentor matching, todo 11) > renders an empty-match state when no real review history produces an apprentice need 6ms
 ✓ src/miniapps/mentor/MentorScreen.test.tsx > MentorScreen (apprentice-to-mentor matching, todo 11) > proposes the mentor with the highest skill+dependency coverage for a real apprentice need 26ms
 ✓ src/miniapps/mentor/MentorScreen.test.tsx > MentorScreen (apprentice-to-mentor matching, todo 11) > renders an explicit no-match state, not a crash, when no mentor covers the apprentice's needed skills 15ms
 ✓ src/miniapps/mentor/MentorScreen.test.tsx > MentorScreen (apprentice-to-mentor matching, todo 11) > confirms a proposed match via postMentorMatch and replays it as confirmed after a cold reload 48ms

 Test Files  2 passed (2)
      Tests  22 passed (22)
   Start at  14:36:34
   Duration  700ms (tests 38%, environment 29%, import 18%, transform 7%, setup 6%, worker 1%)

