• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / fx-private-relay / 74d01625-9661-4180-904e-0bd85eb6c11f

29 May 2025 12:03PM CUT coverage: 85.583% (+0.2%) from 85.353%
74d01625-9661-4180-904e-0bd85eb6c11f

push

circleci

web-flow
Merge pull request #5573 from mozilla/MPP-4155-new-megabundle-banner

MPP-4155 New Megabundle Banner Landing Page

2490 of 3629 branches covered (68.61%)

Branch coverage included in aggregate %.

60 of 62 new or added lines in 8 files covered. (96.77%)

19 existing lines in 6 files now uncovered.

17598 of 19843 relevant lines covered (88.69%)

9.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/frontend/src/hooks/session.ts
1
import { useProfiles } from "./api/profile";
9✔
2

3
export type LoggedInState = "logged-out" | "logged-in" | "unknown";
4

5
/*
6
 * Is the user logged in?
7
 * @returns LoggedInState, 'unknown' if loading profiles, 'logged-in' or 'logged-out' once known
8
 */
9
export function useIsLoggedIn(): LoggedInState {
335✔
10
  const profileData = useProfiles();
335✔
11
  if (profileData.isLoading) {
335!
UNCOV
12
    return "unknown";
×
13
  }
14
  return typeof profileData !== "undefined" &&
335✔
15
    typeof profileData.data !== "undefined" &&
16
    typeof profileData.error === "undefined"
17
    ? "logged-in"
18
    : "logged-out";
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc