Skip to content

fix: support manual overrides via context.route or page.route#39

Merged
kettanaito merged 2 commits intomainfrom
fix/support-manual-overrides
Feb 16, 2026
Merged

fix: support manual overrides via context.route or page.route#39
kettanaito merged 2 commits intomainfrom
fix/support-manual-overrides

Conversation

@kettanaito
Copy link
Member

@kettanaito kettanaito commented Feb 16, 2026

Changes

  • Use route.fallback() for unhandled routes so they can be tapped into route handlers defined by the user (via context.route or page.route in their tests).
  • Add the missing test cases.

Somehow, this also significantly reduces the probability of #35. I don't see any reason that would happen, but it does. route.fallback() still has the _handledPromise check built in, but it seems to error quite less.

@kettanaito kettanaito merged commit 2b8452a into main Feb 16, 2026
1 check passed
@kettanaito kettanaito deleted the fix/support-manual-overrides branch February 16, 2026 13:31
@kettanaito
Copy link
Member Author

Released: v0.6.3 🎉

This has been released in v0.6.3.

Get these changes by running the following command:

npm i @msw/playwright@latest

Predictable release automation by Release.

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.

1 participant