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(#zimic): upgrade msw to v2.6.0 #423

Draft
wants to merge 14 commits into
base: canary
Choose a base branch
from

Conversation

diego-aquino
Copy link
Member

@diego-aquino diego-aquino commented Oct 13, 2024

Reopening #410.

Chore

  • [#zimic] Upgrades msw to its latest version.

@diego-aquino
Copy link
Member Author

The tests are still failing due to mswjs/msw#2297.

@diego-aquino diego-aquino self-assigned this Oct 13, 2024
@diego-aquino diego-aquino added blocked Blocked dependencies Pull requests that update a dependency file javascript labels Oct 13, 2024
@diego-aquino diego-aquino marked this pull request as draft October 13, 2024 12:44
@diego-aquino diego-aquino changed the title chore(#zimic): upgrade msw to v2.4.10 chore(#zimic): upgrade msw to v2.4.12 Oct 21, 2024
@diego-aquino
Copy link
Member Author

Upgrading to 2.4.12 now results in many errors as:

zimic:test:turbo: ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
zimic:test:turbo: 
zimic:test:turbo: Vitest caught 49 unhandled errors during the test run.
zimic:test:turbo: This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
zimic:test:turbo: 
zimic:test:turbo: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
zimic:test:turbo: TypeError: Cannot read properties of undefined (reading 'url')
zimic:test:turbo:  ❯ ../../node_modules/.pnpm/[email protected][email protected]/node_modules/msw/lib/browser/index.mjs:1089:24
zimic:test:turbo:  ❯ ServiceWorkerContainer.<anonymous> ../../node_modules/.pnpm/[email protected][email protected]/node_modules/msw/lib/browser/index.mjs:2591:15

@diego-aquino diego-aquino changed the title chore(#zimic): upgrade msw to v2.4.12 chore(#zimic): upgrade msw to v2.5.1 Oct 25, 2024
@diego-aquino
Copy link
Member Author

diego-aquino commented Oct 25, 2024

Upgrading to [email protected] now results in many errors as:

zimic:test:turbo: ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
zimic:test:turbo: 
zimic:test:turbo: Vitest caught 49 unhandled errors during the test run.
zimic:test:turbo: This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
zimic:test:turbo: 
zimic:test:turbo: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
zimic:test:turbo: TypeError: Cannot read properties of undefined (reading 'url')
zimic:test:turbo:  ❯ ../../node_modules/.pnpm/[email protected][email protected]/node_modules/msw/lib/browser/index.mjs:1089:24
zimic:test:turbo:  ❯ ServiceWorkerContainer.<anonymous> ../../node_modules/.pnpm/[email protected][email protected]/node_modules/msw/lib/browser/index.mjs:2591:15

Those errors are likely related to mswjs/msw#2146.

@diego-aquino diego-aquino changed the title chore(#zimic): upgrade msw to v2.5.1 chore(#zimic): upgrade msw to v2.6.0 Nov 3, 2024
@diego-aquino
Copy link
Member Author

diego-aquino commented Nov 3, 2024

Apparently, [email protected] fixes all of the issues blocking this upgrade!

However, I'll keep this PR open for another week to make sure everything is fine. We'll re-run the tests after the dependency upgrade next Sunday and hopefully merge this.

@diego-aquino diego-aquino removed the blocked Blocked label Nov 3, 2024
@diego-aquino diego-aquino added this to the v0.9.5 milestone Nov 3, 2024
@diego-aquino
Copy link
Member Author

Apparently, [email protected] fixes all of the issues blocking this upgrade!

However, I'll keep this PR open for another week to make sure everything is fine. We'll re-run the tests after the dependency upgrade next Sunday and hopefully merge this.

Actually, mswjs/msw#2146 does not appear to be fixed in [email protected].
CI just failed with the same error. 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant