File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/plugin-lighthouse/src/lib/runner/details Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 33 type Table ,
44 type TableRowObject ,
55 tableSchema ,
6+ validate ,
67} from '@code-pushup/models' ;
78import { formatBytes , formatDuration , html } from '@code-pushup/utils' ;
89import { parseTableColumns , parseTableEntry } from './table.type.js' ;
@@ -18,7 +19,7 @@ export function parseOpportunityToAuditDetailsTable(
1819 }
1920
2021 try {
21- return tableSchema ( ) . parse ( {
22+ return validate ( tableSchema ( ) , {
2223 title : 'Opportunity' ,
2324 columns : parseTableColumns ( headings ) ,
2425 rows : items . map ( row => parseOpportunityItemToTableRow ( row , headings ) ) ,
Original file line number Diff line number Diff line change 44 type TableColumnObject ,
55 type TableRowObject ,
66 tableSchema ,
7+ validate ,
78} from '@code-pushup/models' ;
89import { formatTableItemPropertyValue } from './item-value.js' ;
910import { LighthouseAuditDetailsParsingError } from './utils.js' ;
@@ -18,7 +19,7 @@ export function parseTableToAuditDetailsTable(
1819 }
1920
2021 try {
21- return tableSchema ( ) . parse ( {
22+ return validate ( tableSchema ( ) , {
2223 columns : parseTableColumns ( headings ) ,
2324 rows : items . map ( row => parseTableRow ( row , headings ) ) ,
2425 } ) ;
You can’t perform that action at this time.
0 commit comments