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

chore: bump TypeScript to v5.5 #31532

Merged
merged 2 commits into from
Jul 5, 2024
Merged

Conversation

mxschmitt
Copy link
Member

We want to make sure that our exposed @playwright/test types work with the latest TypeScript version and didn't introduce unwanted regressions. Also this release offers a lot of great enhancements which should make our developer experience better: https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/

We want to make sure that our exposed @playwright/test types work with the latest TypeScript
version and didn't introduce unwanted regressions. Also this release offers a lot of great
enhancements which should make our developer experience better: https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/
@@ -282,16 +282,16 @@ export async function convertInputFiles(files: string | FilePayload | string[] |
if (!items.every(item => typeof item === 'string'))
throw new Error('File paths cannot be mixed with buffers');

const [localPaths, localDirectory] = await resolvePathsAndDirectoryForInputFiles(items as string[]);
const [localPaths, localDirectory] = await resolvePathsAndDirectoryForInputFiles(items);
Copy link
Member Author

@mxschmitt mxschmitt Jul 3, 2024

Choose a reason for hiding this comment

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

This is one of the highlights in this TypeScript v5.5 release. That filter will have the filter'ed type.

This comment has been minimized.

Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

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

lgtm modulo the auto-override case

tests/playwright-test/types.spec.ts Show resolved Hide resolved
@mxschmitt mxschmitt marked this pull request as draft July 3, 2024 14:59
@mxschmitt mxschmitt marked this pull request as ready for review July 5, 2024 14:08
@mxschmitt mxschmitt merged commit 1132667 into microsoft:main Jul 5, 2024
29 checks passed
Copy link
Contributor

github-actions bot commented Jul 5, 2024

Test results for "tests 1"

7 flaky ⚠️ [chromium-library] › library/browsercontext-fetch-happy-eyeballs.spec.ts:49:3 › get should work on request fixture
⚠️ [chromium-library] › library/browsercontext-fetch-happy-eyeballs.spec.ts:49:3 › get should work on request fixture
⚠️ [chromium-library] › library/browsercontext-fetch-happy-eyeballs.spec.ts:49:3 › get should work on request fixture
⚠️ [chromium-library] › library/trace-viewer.spec.ts:919:1 › should serve overridden request
⚠️ [firefox-library] › library/browsercontext-fetch-happy-eyeballs.spec.ts:49:3 › get should work on request fixture
⚠️ [chromium-library] › library/browsercontext-fetch-happy-eyeballs.spec.ts:49:3 › get should work on request fixture
⚠️ [webkit-library] › library/browsercontext-fetch-happy-eyeballs.spec.ts:49:3 › get should work on request fixture

28423 passed, 654 skipped
✔️✔️✔️

Merge workflow run.

dgozman added a commit that referenced this pull request Aug 8, 2024
Regressed in #31532. The TS5.5 changes broke chaining of `extend`s where
the first `extend` did not specify any type arguments.

Fixes #32056.
dgozman added a commit to dgozman/playwright that referenced this pull request Aug 8, 2024
… support TS 5.5

Regressed in microsoft#31532. The TS5.5 changes broke chaining of `extend`s where
the first `extend` did not specify any type arguments.

Fixes microsoft#32056.
dgozman added a commit that referenced this pull request Aug 8, 2024
…TS 5.5 (#32080)

Regressed in #31532. The TS5.5 changes broke chaining of `extend`s where
the first `extend` did not specify any type arguments.

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