Skip to content

Conversation

@mxschmitt
Copy link
Contributor

@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
Contributor 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).

@mxschmitt mxschmitt requested a review from dgozman June 14, 2021 16:52
@dgozman dgozman requested a review from JoelEinbinder June 14, 2021 18:16
@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
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