-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
Add support for multiple worker directories #1607
Comments
Hi, @florian-milky. That's a great suggestion! I will try to add it to the upcoming major release. Would the following API work for you? {
"msw": {
"workerDirectory": ["./public", "./storybook/static", "foo/bar"]
}
} |
Thinking about this, I think the best strategy is to ship this incrementally after the next release. This will have backward compatibility and will support a plain string as a value as well (I see no reason not to do that). May be one of the good issues to pick up after the release. |
@kettanaito Sounds great! Thank you! |
It will be awesome for monorepo setup, can't wait for next major update release |
Released: v2.1.0 🎉This has been released in v2.1.0! Make sure to always update to the latest version ( Predictable release automation by @ossjs/release. |
Scope
Improves an existing behavior
Compatibility
Feature description
In my project I have several directories where I use msw (storybook and test for example).
At the moment I can only define one
workerDirectory
, so only one of my files get updated with new versions.Suggestion: allow a
workerDirectories
option or allowworkerDirectory
to take an array of stringsThe text was updated successfully, but these errors were encountered: