-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
MedusaTestRunner, medusa-test-utils -> Loaders for module Workflows failed: Method Map.prototype.set called on incompatible receiver #<Map> #9350
Comments
Same issue for 1st Oct RC version. Noticed that removing |
I was wondering why was this issue closed. I still experience issues in v2.0.1. As @bwmirek, removing Is this something you are going to look into? |
Hey, yes we're looking into this. We tracked the bug down to jest, but looking to see if we can fix it on our end. cc @damianr13 @bwmirek @jbrigbyjs We have created a ticket to track this, will update here when we have a fix. |
@riqwan any luck on this? :) |
Apologies for the long delay. This was a pain to debug, but we have a workaround. Real quick, the reason we are here is because:
The workaround here is to basically clear the storage on every run and force mikroorm to generate the metadata instead of relying on the one from storage, which is incorrect due to the incorrect cloning that took place. Workaround:
Let me know if that works. There are some questions that are unanswered here, but we will revisit that once we've migrated to the latest mikroorm. |
Thank you so much! I will give it a shot tomorrow. |
Nice, let me know how it goes! @dwene |
@riqwan yep that worked, thanks! I was able to use a typescript setup file. setup.ts
|
Bug report
Loaders failing when you have multiple test runners in different test files.
error appear always on second test runner
reproduce
npm run test:integration:http
System information
Medusa version (including plugins): preview, 2.0.10
Node.js version: 20
Database: postgres 16
Operating system: ubuntu 22
The text was updated successfully, but these errors were encountered: