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

fix(test-runner): do not require esModuleInterop=true #7100

Merged

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Jun 14, 2021

They have a export = foo export in place, which would require esModuleInterop or allowSyntheticDefaultImports. This PR does workaround that, since its not a TypeScript default which confuses users.

Fixes #7099

Copy link
Member

@pavelfeldman pavelfeldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a little hard for me to assess the implications of this. It is a breaking change to our users?

@mxschmitt
Copy link
Member Author

mxschmitt commented Jun 14, 2021

It is a little hard for me to assess the implications of this. It is a breaking change to our users?

Should not be in my opinion. By this change it works in both modes, without the default export support and with. I just moved a few lines from the 3rd-party package expect into our codebase.

We have a bunch of tests which are running TSC internally and they are still passing. Without my change they were broken (and the tsconfig adjustment).

@dgozman
Copy link
Contributor

dgozman commented Jun 14, 2021

I'd like Joel to review this instead of me 😄

@mxschmitt mxschmitt force-pushed the bugfix/test-runner-expect-7099 branch 4 times, most recently from 5d4ae3e to 41331f4 Compare June 14, 2021 19:19
@mxschmitt mxschmitt force-pushed the bugfix/test-runner-expect-7099 branch from 41331f4 to 2141c86 Compare June 14, 2021 19:22
@mxschmitt mxschmitt merged commit a3a9cca into microsoft:master Jun 14, 2021
aslushnikov pushed a commit to aslushnikov/playwright that referenced this pull request Jun 25, 2021
aslushnikov added a commit that referenced this pull request Jun 25, 2021
Cherry-Pick PR #7100 SHA a3a9cca

Co-authored-by: Max Schmitt <max@schmitt.mx>
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.

[test-runner] Missing types for the expect library
4 participants