Address test data: fixtures, exports, and repeatable checks
Plan address fixtures around the behavior under test, preserve them in exports, and make failures repeatable.
Separate formatting tests from address verification
A form component can be tested with synthetic values. A shipping integration needs the provider sandbox or an authorized destination. Decide which boundary the test covers before choosing its data.
Keep fixtures small and versioned
Store only the fields the scenario needs, use a stable seed where available, and record the fixture or generator version. When a catalog changes, the version helps explain why a formerly passing snapshot differs.
Turn cases into a checkout matrix
Cover required and optional fields, long values, non-Latin scripts, omitted postal codes, and export/import paths. Keep one expected result per case so a failure points to a specific rule.