b162750a67
tournament-update.test.ts was mocking the entire @/lib/permissions module, which replaced canManageTournament globally and caused permissions.test.ts to fail when run in the same process. Instead of mocking permissions, mock its dependencies (auth-simple and prisma) so canManageTournament runs through naturally.