mswjs / examples

Examples of Mock Service Worker usage with various frameworks and libraries.
683 stars 211 forks source link

Set multiple "msw.workerDirectory" in root-level package.json #108

Closed kettanaito closed 8 months ago

kettanaito commented 8 months ago

The new version of MSW supports a list of worker script directories in msw.workerDirectory. We can utilize that to ease the upgrade path and to generate the worker scripts at multiple examples at the same time while running npx msw init from the root of the repo.