-
### ๐ ๊ฐ์
MSW์ ๊ฐ๋
๋ฐ ์ฌ์ฉ๋ฒ์ ๋ํด ์์ฑ๋์์ต๋๋ค.
### ๐ MSW ๋?
- MSW๋ ๋คํธ์ํฌ ์์ฒญ์ ๋ชจ์(mock)ํ์ฌ ๊ฐ๋ฐ ๋ฐ ํ
์คํธ ํ๊ฒฝ์์ ์ค์ API ์์ฒญ์ ๋์ฒดํ ์ ์๋ ๋๊ตฌ์
๋๋ค.
- ํ๋ก ํธ์๋ ๊ฐ๋ฐ์๋ ๋ฐฑ์๋ ์๋น์ค๊ฐ ์ค๋น๋์ง ์์๋ ๊ฐ๋ฐ์ ์งํํ ์ ์์ผ๋ฉฐ, ํ
์คํธ ํ๊ฒฝ์์ ์์ ์ ์ธ API ์๋ต์ ์ฌ์ฉํ ์ โฆ
-
-
# MSW 2๋ก ๋ค์ํ ํ๊ฒฝ์์ API ๋ชจ์ํ๊ธฐ
์๋ก ํ๋ก ํธ์๋ ๊ฐ๋ฐ์ ํ๋ค ๋ณด๋ฉด ๋ก์ปฌ ํ๊ฒฝ์์ ํต์ ํ ์ ์๋ ๊ฐ๋ฐ์ฉ API ์๋ฒ๋ฅผ ๋ง๋ จํ๊ธฐ ์ด๋ ค์ด ์ํฉ์ด๊ฑฐ๋, ๋ณ๋ ฌ ๊ฐ๋ฐ๋ก ์ธํด ์์ง ์ค์ API ํธ์ถ์ด ๋ถ๊ฐ๋ฅํ ์ํฉ์์ ๊ฐ๋ฐํด์ผ ํ๋ ๊ฒฝ์ฐ๊ฐ ์๊ธฐ๊ธฐ๋ ํฉ๋๋ค. ์ด๋ฌํ ๊ฒฝ์ฐ์ ๊ฐ๋จํ๊ฒ Mock ๋ฐ์ดํฐ๋ง
[https://bbearcookie.netlifyโฆ
-
Samples:
* [T-SP-OB.1302-2024-OAS-MSW-E.docx](https://github.com/user-attachments/files/17376636/T-SP-OB.1302-2024-OAS-MSW-E.docx)
* [T-SP-OB.1301-2024-OAS-MSW-E.docx](https://github.com/user-attaโฆ
-
### Current behavior
For Angular Component Testing, I want to use MSW (Mock Service Worker), using msw request handlers instead of cy.intercept().
The tested component is not working as expected
##โฆ
-
**Fleet version**: `4.58.0`
### ๐ฅ ย Actual behavior
There are two high severity vulnerability reports:
1. https://github.com/fleetdm/fleet/security/dependabot/268
2. https://github.comโฆ
-
AS A Product Owner
I WANT all of the [MSW](https://mswjs.io) requests to be removed and replaced with Ruuter endpoints
SO THAT the all of the mock requests would be removed and the service could be โฆ
-
Working with the new version V.2 of msw, does not react the same as V.1. I have ran into issues with the HttpResponse.json() and not seeing the data returned from const {data, isLoading} = useHook().โฆ
-
## What are the steps to reproduce this issue?
I was able to get a minimal repro stood up:
https://stackblitz.com/edit/vitejs-vite-xqak8w?file=src%2Fhandlers%2Fexample.ts&view=editor
## Whaโฆ
-
### Describe the bug
I am encountering an issue where MSW is unable to intercept GraphQL queries when using `vi.mock` from Vitest in my test setup.
Regardless of which module is being mocked usinโฆ