From 6f8b066d392b847ed273b4c252d5fbc8aff65624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Thu, 15 Feb 2024 13:03:58 +0100 Subject: [PATCH] dev: fix e2e test comparison worked in the wrong direction --- tests/e2e/compare/compare.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/compare/compare.js b/tests/e2e/compare/compare.js index 3be7abc91188..29a2a269aa1e 100644 --- a/tests/e2e/compare/compare.js +++ b/tests/e2e/compare/compare.js @@ -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);