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

New Features with MSW 2.0 #59

Open
janwidmer opened this issue Jan 1, 2024 · 1 comment
Open

New Features with MSW 2.0 #59

janwidmer opened this issue Jan 1, 2024 · 1 comment

Comments

@janwidmer
Copy link
Collaborator

janwidmer commented Jan 1, 2024

Check the following new features with MSW 2.0:

  1. worker.start option quiet: true to disable all logging, https://mswjs.io/docs/api/setup-worker/start#quiet => Add quiet option #62
  2. scenarios to test success & error case, https://mswjs.io/docs/best-practices/dynamic-mock-scenarios
  3. check if network behavior overrides can / should be used, https://mswjs.io/docs/best-practices/network-behavior-overrides
  4. check if mock sync methods should be used, https://mswjs.io/docs/recipes/keeping-mocks-in-sync
  5. check if conditional import can be improved, https://mswjs.io/docs/integrations/browser#conditionally-enable-mocking => done
@janwidmer
Copy link
Collaborator Author

janwidmer commented Apr 30, 2024

  1. worker.start option quiet: true to disable all logging, https://mswjs.io/docs/api/setup-worker/start#quiet =>
    => done in ticket Add quiet option #62
  2. scenarios to test success & error case, https://mswjs.io/docs/best-practices/dynamic-mock-scenarios
  3. check if network behavior overrides can / should be used, https://mswjs.io/docs/best-practices/network-behavior-overrides
  4. check if mock sync methods should be used, https://mswjs.io/docs/recipes/keeping-mocks-in-sync
    => done, auto generation by using https://github.com/zoubingwu/msw-auto-mock and swagger openapi json works, but starting the server leads in an endless loop
    => npx msw-auto-mock ./swagger.json --base-url https://swagger-url.com/ -o ./src/mock-server/mock.js
  5. check if conditional import can be improved, https://mswjs.io/docs/integrations/browser#conditionally-enable-mocking
    => done

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

No branches or pull requests

1 participant