Replies: 1 comment 2 replies
-
You need to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I write tests in JEST framework and i use entities here.
My entities uses decorators and when i call add method on Collection, orm mechanism required metadata. Then i got error like this:
TypeError: Cannot read property 'properties' of undefined
So could You please tell me how can i configure jest and what i shoud trigger from Mikro ORM? I dont want use MikroORM.init because there a need use db data. I dont want use db factor in this tests.
That i think i need use call somehow ReflectMetadataProvider with my entities in discovery process to parsing metadata correctly before using this entities in tests.
Please help me :)
Best regards
Beta Was this translation helpful? Give feedback.
All reactions