Skip to content

Conversation

kettanaito
Copy link
Member

Renames the fixture creating API to createNetworkFixture. The reasoning behind this is that "worker" is a generic term that also has a different meaning in Playwright (as in "test worker"). The connection with the worker from setupWorker() in MSW is extremely weak here.

Instead, I propose to refer to the created fixture as the "network fixture". That describes precisely what that fixture does—controls the network in your test.

@kettanaito kettanaito changed the title feat: renames createWorkerFixture to createNetworkFixture feat: rename createWorkerFixture to createNetworkFixture Jun 30, 2025
@kettanaito kettanaito force-pushed the feat/rename-to-network branch from 4a63f0b to 0dd8288 Compare June 30, 2025 08:22
@kettanaito kettanaito merged commit 3124fe9 into main Jun 30, 2025
1 check passed
@kettanaito kettanaito deleted the feat/rename-to-network branch June 30, 2025 08:23
@kettanaito
Copy link
Member Author

Released: v0.4.0 🎉

This has been released in v0.4.0!

Make sure to always update to the latest version (npm i @msw/playwright@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/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