Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Using MSW (Mock Service Worker) in an Angular project #194

Closed
utterances-bot opened this issue May 20, 2023 · 3 comments
Closed

Using MSW (Mock Service Worker) in an Angular project #194

utterances-bot opened this issue May 20, 2023 · 3 comments

Comments

@utterances-bot
Copy link

Using MSW (Mock Service Worker) in an Angular project - Tim Deschryver

Using MSW to mock your server in an Angular project

https://timdeschryver.dev/blog/using-msw-in-an-angular-project

Copy link

Thank you for article Tim!
Do you think is possible to use booth, Angular's Service Worker (PWA) and MSW?

@timdeschryver
Copy link
Owner

I expect that to work.
What's the concern that's on your mind with it @eugeniuznagovan ?

Copy link

MSW seems a great option for API mocking. I tried to integrate it in my Angular PWA application but seems that booth of the service workers (ngsw & msw) need to be defined in the application root scope ("/") to work properly. If booth of the service workers are defined the same scope, they're replacing each other. This behaviour is described in service worker registration section from spec. I believe merging these two workers might be a solution, but it's too hacky :)

Repository owner locked and limited conversation to collaborators Jul 24, 2023
@timdeschryver timdeschryver converted this issue into discussion #245 Jul 24, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants