How the parity gate works
mainThe parity gate uses a deterministic process to ensure report stability:
fixtures/: A suite of tests covering various scenarios (pass, fail-with-diff, pending, nested, hooks, andaddContext). These use hand-built errors to ensure output stability across Node versions.normalize.js: A normalization step that replaces non-deterministic values (UUIDs, durations, timestamps, absolute paths, and stack frames) with stable placeholders. It also sorts JSON keys and parallel-mode suite ordering to ensure a deterministic comparison.golden/: The directory containing the committed, expected JSON output files used as the baseline for comparison.