-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
Bug: Couldn't extract the type #20
Comments
What is |
@upMKuhn Oh I guess you're trying to generate a random uuid for @Fixture(faker => faker.random.uuid())
public checkId: string |
Hey @CyriacBr, the error message is a bit misleading. The I think the root cause of this error message might a circular dependency situation. Since I haven't included the entire Fixture setup. It wasn't clear in my original post: OrderFileFake -> ICheck[] +(IOrder -> IActor). |
The best indicator for it is: factory.register([OrderFileFake]); // works
// factory.register([OrderFileFake, CheckFake]); // breaks
checks: [{ actor: { type: ActorType.CORPORATE } }, { actor: { type: ActorType.INDIVIDUAL } }], // works
// checks: [].concat(CheckFake.coperateCheck(factory).many(2), CheckFake.indivdualCheck(factory).many(2)), // breaks
|
Going by the error message, the factory can't, for some reason find the type of If this is a relationships issue, that's probably fixed in this PR #17. |
It hopefully will be fixed in the new PR then. |
We can close here I'll watch and try again when the PR is merged. IOrder -> ICheck[] ICheck -> IActor. |
Alright, I'll close this. |
I'll try to find them again. |
Error: Couldn't extract the type of "checkId". Use @fixture({ type: () => Foo }).
Hi there,
thank you for your library. I think i stumbled upon a bug. Can you have a quick look, maybe I did something wrong here.
Stituation
Models
Thanks!
The text was updated successfully, but these errors were encountered: