All files / apps/developer-portal/layers/snapshot/app/utils shellBadges.ts

66.66% Statements 2/3
100% Branches 1/1
0% Functions 0/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9    1x         1x  
import type { Badges } from "#layers/snapshot/shared/types/Badges.ts";
 
const [badges = null] = Object.values(
    import.meta.glob<Badges>("~~/.report/badges.json", { eager: true, import: "default" }),
);
 
/** The shell's figures from the last collect, bundled at build time; null when `.report/` has none. */
export const shellBadges = (): Badges | null => badges;