There is a Jest issue on handling dynamic imports that is really annoying.
I used to apply an approach discussed in this issue:
https://github.com/evanw/esbuild/issues/2651
But now I'm going to apply another approach from the same one, just by disabling the dynamic imports for CJS, as a cleaner way (in my opinion).
There is a Jest issue on handling dynamic imports that is really annoying. I used to apply an approach discussed in this issue: https://github.com/evanw/esbuild/issues/2651 But now I'm going to apply another approach from the same one, just by disabling the dynamic imports for CJS, as a cleaner way (in my opinion).
https://esbuild.github.io/api/#supported