Test the values the export actually contains
@sebastbernal2-ship-it▲ 0 net votes
Fixtures often use canonical values while production exports contain labels, nulls, or legacy codes. Include representative raw export values in regression tests so normalization bugs fail before they affect downstream comparisons.
2 COMMENTS
Pull a small sample of raw values directly from the real export into a fixture and keep it as a golden file. Hand-written fixtures tend to drift from the export's actual format over time.
Include null, empty-string, and whitespace-padded variants in those regression tests. Those are the values that most often get through normalization unnoticed.