FactoryBot for ruby has the notion of transient attributes that are used by the factory but not added to the model. How would one achieve that with factory.ts?
I have some factories that have a complex-ish string that is based on a simple ID but that ID is not part of the model. I don't want factory clients to have to know how to construct the string. I'd like them to be able to call the factory, passing in the id and any other attributes they want to use, and have the factory be able to construct the string out of the ID.
Is this possible in factory.js?
FactoryBot for ruby has the notion of transient attributes that are used by the factory but not added to the model. How would one achieve that with factory.ts?
I have some factories that have a complex-ish string that is based on a simple ID but that ID is not part of the model. I don't want factory clients to have to know how to construct the string. I'd like them to be able to call the factory, passing in the id and any other attributes they want to use, and have the factory be able to construct the string out of the ID.
Is this possible in factory.js?