MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / setLocation

Function setLocation

packages/react/src/plugins/oauth-sign-in.test.ts:11–16  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

9const originalWindow = globalThis.window;
10
11const setLocation = (href: string): void => {
12 Object.defineProperty(globalThis, "window", {
13 configurable: true,
14 value: { location: new URL(href) },
15 });
16};
17
18afterEach(() => {
19 if (originalWindow) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected