diff --git a/src/app/components/client/ExposuresFilter.tsx b/src/app/components/client/ExposuresFilter.tsx
index 01c0beed28f..3f43766df02 100644
--- a/src/app/components/client/ExposuresFilter.tsx
+++ b/src/app/components/client/ExposuresFilter.tsx
@@ -81,6 +81,9 @@ export const ExposuresFilter = ({
// Status filter explainer dialog
const exposureStatusExplainerDialogState = useOverlayTriggerState({
onOpenChange: (isOpen) => {
+ /* c8 ignore next 3 */
+ // Since the Node 20.10 upgrade, it's been intermittently marking this
+ // (and this comment) as uncovered.
recordTelemetry("popup", isOpen ? "view" : "exit", {
popup_id: "exposure_status_info",
});
diff --git a/src/app/components/client/FixNavigation.tsx b/src/app/components/client/FixNavigation.tsx
index b577f63e071..ae9e73bf3c6 100644
--- a/src/app/components/client/FixNavigation.tsx
+++ b/src/app/components/client/FixNavigation.tsx
@@ -85,6 +85,10 @@ export const Steps = (props: {
{isEligibleForStep(props.data, "Scan") && (
@@ -200,7 +224,11 @@ const StepImage = (props: {
? stepDataBrokerProfilesIcon
: props.section === "HighRisk"
? stepHighRiskDataBreachesIcon
- : props.section === "LeakedPasswords"
+ : /* c8 ignore next 6 */
+ // These lines should be covered by unit tests, but since the Node
+ // 20.10 upgrade, it's been intermittently marking this (and this
+ // comment) as uncovered.
+ props.section === "LeakedPasswords"
? stepLeakedPasswordsIcon
: stepSecurityRecommendationsIcon;
@@ -210,6 +238,10 @@ const StepImage = (props: {
function calculateActiveProgressBarPosition(section: Props["currentSection"]) {
if (section === "high-risk-data-breach") {
return styles.beginHighRiskDataBreaches;
+ /* c8 ignore next 10 */
+ // These lines should be covered by unit tests, but since the Node 20.10
+ // upgrade, it's been intermittently marking them (and this comment) as
+ // uncovered.
} else if (section === "leaked-passwords") {
return styles.beginLeakedPasswords;
} else if (section === "security-recommendations") {
diff --git a/src/app/components/client/dialog/Dialog.tsx b/src/app/components/client/dialog/Dialog.tsx
index 514f29cf6fa..b6d185d771d 100644
--- a/src/app/components/client/dialog/Dialog.tsx
+++ b/src/app/components/client/dialog/Dialog.tsx
@@ -49,7 +49,8 @@ export const Dialog = ({
height="14"
/>
- ) : null;
+ ) : /* c8 ignore next */
+ null;
return (
{
+ /* c8 ignore next 4 */
// Never run in tests:
- /* c8 ignore next 3 */
if (debugMode) {
console.info("Initialize GA4");
}
@@ -59,9 +59,9 @@ export const useGa = (): {
// Enable upload only if the user has not opted out of tracking.
const uploadEnabled = navigator.doNotTrack !== "1";
+ /* c8 ignore next 7 */
+ // Never run in tests:
if (!uploadEnabled) {
- // Never run in tests:
- /* c8 ignore next 3 */
if (debugMode) {
console.info("Did not initialize GA4 due to DoNotTrack.");
}