我也有在我的插件中定义自定义 fabricators 的需求,但令我惊讶的是,我们还没有对此提供适当的支持。
一旦上述 PR 被合并,只要 fabricators 存在于插件的 spec/fabricators 文件夹中,它们就会被自动引入。
spec/fabricators