Skip to content

Commit

Permalink
refactor: adopt demo budgets 3
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Feb 11, 2023
1 parent 67efcf3 commit a6ffc77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/lib/commands/assert/utils/md-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function getBudgetTable(reducedReport: ReducedReport, options: {heading:
resultsTimingBudget: resultsTimingBudget !== undefined ? [
resultsTimingBudget.headings.map(h => h.text as string),
...resultsTimingBudget.items.map(({label, measurement, overBudget}) =>
[label, measurement + ' ms', overBudget ? formatBytes(overBudget as number) : '-'] as (string|number)[]) || []
[label, measurement + ' ms', overBudget ? `${overBudget} ms` : '-'] as (string|number)[]) || []
] : []
})
);
Expand Down
10 changes: 5 additions & 5 deletions packages/user-flow-ci-integration/.user-flowrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"resourceType": "third-party",
"budget": 100
"budget": 10
}
],
"resourceCounts": [
Expand All @@ -29,13 +29,13 @@
}
],
"timings": [
{
"metric": "interactive",
"budget": 5000
},
{
"metric": "first-meaningful-paint",
"budget": 2000
},
{
"metric": "interactive",
"budget": 2100
}
]
}
Expand Down

0 comments on commit a6ffc77

Please sign in to comment.