All files / apps/developer-portal/layers/decisions/app/composables useDecisionReports.ts

100% Statements 3/3
100% Branches 2/2
100% Functions 2/2
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      32x 37x    
import { toDecisionReports } from "#layers/decisions/shared/decisionReports.ts";
 
/** Read off the collected snapshot rather than the content collection, because the frontmatter both pills show is parsed and validated there. */
export const useDecisionReports = () => {
    return computed(() => toDecisionReports(docsArtifact()?.pages ?? []));
};