does anyone know why the jest

does anyone know why the jest environment for miniflare would have changed the functioning of global so that I now have to use globalThis? starting in version 3 I think
4 Replies
Adam
Adam•17mo ago
Hello 👋 Right now there is no support in Miniflare v3 for the unit test environments that worked in v2. With v3 local dev relying on the workerd runtime, we have to rebuild those.
Adam
AdamOP•17mo ago
hmm sorry I think I mispoke, it actually happened when going from 2.7.0 of the miniflare jest environment to newer versions
Adam
AdamOP•17mo ago
I had this old issue related to it, which the above appears to be the cause of https://github.com/cloudflare/miniflare/issues/415
GitHub
Reflect.getMetadata is not a function in Jest after updating to 2....
Our project heavily relies on using the metadata methods added to the global reflect object by the reflect-metadata package. These methods are used to power class decorators that are used by librar...
Adam
AdamOP•17mo ago
basically seems like something changed in how the test environment gets setup which mucks with the behaviour of global
Want results from more Discord servers?
Add your server