Remove access to `Buffer` in `@edge-runtime/jest-environment`
Fixes https://github.com/vercel/edge-runtime/issues/952
Removes access to global Buffer variable from Node when using @edge-runtime/jest-environment.
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.
🦋 Changeset detected
Latest commit: ea9a5a442b29ffe749c74f416f06a7a2d50555fe
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @edge-runtime/jest-environment | Major |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@guisehn is attempting to deploy a commit to the Vercel Team on Vercel.
A member of the Team first needs to authorize it.
Thanks for this!