Skip to content

Commit

Permalink
Merge pull request #40684 from margelo/fix/e2e-tests-correct-comparison
Browse files Browse the repository at this point in the history
e2e: compare `delta` vs `main` instead of `main` vs `main`
  • Loading branch information
danieldoglas authored Apr 22, 2024
2 parents 12046fa + 8077c3d commit f332174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/compare/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function compareResults(compareEntries: Metric | string, baselineEntries: Metric

export default (main: Metric | string, delta: Metric | string, outputFile: string, outputFormat = 'all') => {
// IMPORTANT NOTE: make sure you are passing the delta/compare results first, then the main/baseline results:
const outputData = compareResults(main, main);
const outputData = compareResults(delta, main);

if (outputFormat === 'console' || outputFormat === 'all') {
printToConsole(outputData);
Expand Down

0 comments on commit f332174

Please sign in to comment.