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

Convert "export {userEvent as default}" to "export default" #1069

Closed

Conversation

jroru
Copy link

@jroru jroru commented Oct 11, 2022

What:

Replacing export {userEvent as default} from './setup' with syntax compatible with TypeScript 4.7+ and moduleResolution set to Node16

Why:

TypeScript 4.7+ with moduleResolution set to Node16 doesn't work with export {x as default} from './y' syntax

How:

Named import followed by default export

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 435ff11:

Sandbox Source
userEvent-dom Configuration
userEvent-react Configuration

@jroru jroru closed this Oct 11, 2022
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.

None yet

1 participant