We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems as if the @edge-runtime/jest-environment package does not define the EdgeRuntime global.
@edge-runtime/jest-environment
EdgeRuntime
This prevents me from addressing the runtime in unit tests, which should normally work using
if (typeof EdgeRuntime !== 'string') { // dead-code elimination is enabled for the code inside this block }
https://edge-runtime.vercel.sh/features/available-apis#addressing-the-runtime
The text was updated successfully, but these errors were encountered:
fix(jest-enviroment): add EdgeRuntime global
0a7cebb
This fixes #75
a8411d2
965cfb8
775f4bd
Schniz
Successfully merging a pull request may close this issue.
It seems as if the
@edge-runtime/jest-environment
package does not define theEdgeRuntime
global.This prevents me from addressing the runtime in unit tests, which should normally work using
https://edge-runtime.vercel.sh/features/available-apis#addressing-the-runtime
The text was updated successfully, but these errors were encountered: