- Clone this repo
- Run
npm i
- Run
node index.mjs
Observe that MSW did not intercept the request.
Now, comment out the following line in index.mjs
:
import * as https from "node:https";
And uncomment the following line:
// import https from "node:https";
Run node index.mjs
again and observe that MSW now intercepts the request as expected.