Skip to content

Glossary: Testing Web Apps

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 }).

Where the book teaches it

Related terms

Fixture fileShared state