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 think4 Replies
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.
hmm sorry I think I mispoke, it actually happened when going from 2.7.0 of the miniflare jest environment to newer versions
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...
basically seems like something changed in how the test environment gets setup which mucks with the behaviour of
global