You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @edge-runtime/jest-environment package allows simulating the Edge runtime when running Jest in a node environment, so it should not allow access to node apis such as Buffer.
Current behavior
Right now, it's possible to access Buffer in a test case.
Expected behavior/code
Buffer will not be available in production when using the edge runtime, so it should also be unavailable in tests.
That way, we can catch in tests when unavailable APIs are used.