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

100% Statements 3/3
100% Branches 1/1
100% Functions 1/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    32x         32x  
import type { Manifest } from "#layers/snapshot/shared/types/Manifest.ts";
 
const [manifest = null] = Object.values(
    import.meta.glob<Manifest>("~~/.report/manifest.json", { eager: true, import: "default" }),
);
 
/** The last collect run's manifest, bundled at build time; null when `.report/` has none. */
export const snapshotManifest = (): Manifest | null => manifest;