Skip to content

Commit

Permalink
dev: fix e2e test comparison worked in the wrong direction
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Feb 15, 2024
1 parent 6914b13 commit 6f8b066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/compare/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ function compareResults(compareEntries, baselineEntries) {
}

module.exports = (main, delta, outputFile, outputFormat = 'all') => {
const outputData = compareResults(main, delta);
// IMPORTANT NOTE: make sure you are passing the delta/compare results first, then the main/baseline results:
const outputData = compareResults(delta, main);

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

0 comments on commit 6f8b066

Please sign in to comment.