Closed nathanhannig closed 1 day ago
How does this behave in HappyDOM? Node's Request
won't support relative URLs because there's nothing to be relative to in Node.
hmm, switching to "@happy-dom/jest-environment", I am using MSW (node) with my project and am hitting an issue
ReferenceError: BroadcastChannel is not defined
> 1 | import { http, HttpResponse } from "msw";
| ^
I noticed in testing a project that uses a relative path instead of an absolute path when creating a Request
A type error is thrown
I believe the browser implementation of Request allows relative path because it can determine the base url, while the node version of Request does not.