Yosuke Kurami
Yosuke Kurami
@brian428 I've created demonstration repo https://github.com/Quramy/test-with-aot-summary . See https://github.com/Quramy/test-with-aot-summary/blob/master/test-aot.sh. And I'm working on https://github.com/angular/angular-cli/pull/8007 to provide the AOT unit testing option to angular CLI users.
> https://github.com/Quramy/prisma-fabbrica/pull/257 appears to have broken transactional tests with jest-prisma 🤔 Setup script for jest-prisma uses the following `initialize` function ( which is different from initialize function exposed in generated...
It seems so tough to allow like the following: ```ts type Context = { hoge: boolean; }; const UserFactory = defineUserFactory({ defaultData: async (_, { hoge }) => { return...
I've implemented this feature via #326 and released it as v2.2.0 🚀
Close via #254
I don't understand the role of `provide` you describe 🙇 Would it help if traits could define their arguments as well as names ? ```ts const department = DepartmentFactory.use(['withTeams', {...
@subvertallchris Sorry for my late reply and thanks for your detailed description. After all, it seems that your example of `.provide` is similar transient attributes in factory_bot . > IMO...
@subvertallchris I'm designing this feature in #252. Please give some feedback if possible.
Implemented this feature via #326 .
`XyzFactoryInterface` is used to avoid TS circular reference error. https://github.com/Quramy/prisma-fabbrica?tab=readme-ov-file#suppress-ts-circular-dependencies-error And the type parameter `TOptions` is defined to infer concrete traits keys from argument `defineXyzFactory` .