Grace wants to know whether Quill’s quill/gift-cards-v2 changes anything for customers who never use a gift card. A run is evidence only for what you look at, so you list where a feature writes, copy those places aside before and after the change on the same inputs, and explain every difference.
Key Points
What a script prints is a small part of what the shop did. Nadia Patel’s order of Small Maps with READ20, and its return, print the same two lines on main and on quill/gift-cards-v2.
List where the feature writes before you run it. createOrder() reserves the book, charges the card, saves the order, queues an email, and logs an entry. createRefund() adds the gateway’s refund to the card, the stock it puts back, and the refund record. All eight live in data/shop.json, and the emails also go to outbox/. The call runCommand() makes to settleGateway() is a stub that writes nothing.
Copy those places on the code before the change, too. Seed the shop before each run, so both runs start from the same records. On the branch alone, the new fields would look as if they’d always been there. Give each copy its own name: reusing a name replaces that copy.
Write down what you expect before you compare. git diff --stat main quill/gift-cards-v2 lists 13 changed files, and three are on this run’s path.
In src/storage/commands.js, settleGateway() still gets the order’s id. In src/payments/charges.js, with no gift card, payOrder() keeps main’s cardPaid and giftPaid values and adds three fields to each order it pays.
In src/refunds/destination.js, the refund still sends all 600p to the card. So expect, on order-2, "giftCode": "", "giftRefunded": 0 and "cardRefunded": 600, and nothing else.
Compare the copies with git diff --no-index. Git ignores data/*.json and outbox/*.json. With --no-index, git diff compares any two folders, and it prints only what differs: no outbox/ files means the emails match, and every other place on your list matches too, apart from one hunk in order-2.
There, "giftPaid": 0 only gains a comma. giftCode and giftRefunded match your note, but "cardRefunded" says 0, not the 600 you expected.