Skip to content
New issue

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

Remove access to Buffer in @edge-runtime/jest-environment #953

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

guisehn
Copy link

@guisehn guisehn commented Aug 24, 2024

Fixes #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.

Copy link

changeset-bot bot commented Aug 24, 2024

🦋 Changeset detected

Latest commit: ea9a5a4

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

Copy link

vercel bot commented Aug 24, 2024

@guisehn is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@Kikobeats
Copy link
Member

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node API Buffer is available on @edge-runtime/jest-environment
2 participants