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

Add named export for userEvent #1070

Closed
wants to merge 1 commit into from

Conversation

jroru
Copy link

@jroru jroru commented Oct 11, 2022

What:

Adding a new named export for userEvent

Why:

Allows users who use TypeScript 4.7+ with moduleResolution set to Node16 to avoid configuring esModuleInterop to import the default CJS export.

How:

By importing the named export instead of the default one

Checklist:

  • [N/A] Documentation
  • [N/A] Tests
  • Ready to be merged

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3837f68:

Sandbox Source
userEvent-dom Configuration
userEvent-react Configuration

@kentcdodds
Copy link
Member

I didn't notice this PR and pushed this support myself yesterday. Sorry for not noticing! Thanks for the help :)

@kentcdodds kentcdodds closed this Sep 15, 2023
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.

2 participants