Factory
Also written: factories, makeItem, makeCart, makeCustomer
A function that builds fresh, valid test data each time it's called, with overrides for the fields a test cares about, such as makeItem({ qty: 3 }).
Also written: factories, makeItem, makeCart, makeCustomer
A function that builds fresh, valid test data each time it's called, with overrides for the fields a test cares about, such as makeItem({ qty: 3 }).