Skip to content

Commit

Permalink
Update fetch ADR regarding msw
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Adelöw <[email protected]>
  • Loading branch information
freben authored Nov 30, 2024
1 parent f19c16f commit a4591a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/architecture-decisions/adr014-use-fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ export class MyClient {

We will gradually transition away from third party `fetch` replacement packages
such as `node-fetch` and others on the Node.js platform.

The `@mswjs/interceptors` library as used by `msw` version 1.x [does not support native fetch properly](https://github.com/mswjs/msw/issues/1563#issuecomment-1694249010) and likely never will. When you switch to using native fetch, you may see `msw` based tests start to fail to both capture and block traffic. Certain tests may need to be rewritten to use `msw` 2.x or newer instead, which uses a newer version of the interceptors.

0 comments on commit a4591a5

Please sign in to comment.