We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature like https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#default-callbacks
const PostFactory = definePostFactory({ defaultData: { author: UserFactory, }, onAfterCreate: async (created) => { await something(created); }, });
onAfterBuild
onBeforeCreate
onAfterCreate
The text was updated successfully, but these errors were encountered:
I would very much like this. What do you think the effort level would be? Would this be an easy thing for someone to contribute?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Feature like https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#default-callbacks
onAfterBuild
,onBeforeCreate
,onAfterCreate
is an optional callback functionThe text was updated successfully, but these errors were encountered: