Stub is creating fake data, but it creates fake createdAt and other fields that should not be created.
I now have dozens of .omit({ createdAt: true}) and omit(data, ['createdAt']).
It's also a problem, when value is canRead=false, since type is T | undefined, but create expects that value.
Stub is creating fake data, but it creates fake
createdAt
and other fields that should not be created. I now have dozens of.omit({ createdAt: true})
andomit(data, ['createdAt'])
.It's also a problem, when value is
canRead=false
, since type isT | undefined
, but create expects that value.