Can a customer safely import the changed file into their downstream system?
The original implementation failed the “Record inserted in reverse order” check. Expected 17,Bath and observed Bath,17. The corrected implementation met both expectations on the same inputs.
What the control case missed
Both records have the same data but their object keys were inserted in different orders. Building a row from the object's values silently swaps the ID and city while leaving the CSV syntactically valid.
| Check | Expected | Original | Corrected |
|---|---|---|---|
| Record in schema order | 17,Bath | 17,Bath | 17,Bath |
| Record inserted in reverse order | 17,Bath | Bath,17 | 17,Bath |
What to check before merging
Serialize fields by the declared header order and parse the output in the test. This case isolates column order. Quoting, embedded newlines and spreadsheet formula handling each need a separate fixture.
Reproduce the recorded result
Download the Node.js fixture and run node run.mjs csv-export-column-order with Node.js 24. Compare the printed JSON with the recorded results. This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.