Skip to content

Commit

Permalink
Merge pull request Expensify#36572 from margelo/fix/e2e-tests-not-tes…
Browse files Browse the repository at this point in the history
…ting-correctly

[NoQA] dev: fix e2e test comparison worked in the wrong direction
  • Loading branch information
mountiny authored Feb 15, 2024
2 parents 7512e25 + 6f8b066 commit 155a8cd
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 155a8cd

Please sign in to comment.