[graphiql] Upgrade to @graphiql/react breaks unit tests
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
We are getting the error
``` console
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
- /local/myproject/node_modules/@graphiql/react/src/utility/context.ts:24:58
- /local/myproject/node_modules/@graphiql/plugin-explorer/dist/index.js:1:2531
- /local/myproject/node_modules/react-dom/cjs/react-dom.development.js:16305:18
- /local/myproject/node_modules/react-dom/cjs/react-dom.development.js:20074:13
- /local/myproject/node_modules/react-dom/cjs/react-dom.development.js:21587:16
- /local/myproject/node_modules/react-dom/cjs/react-dom.development.js:4164:14
- /local/myproject/node_modules/happy-dom/src/event/EventTarget.ts:223:42
- /local/myproject/node_modules/happy-dom/src/nodes/element/Element.ts:1171:29
- /local/myproject/node_modules/happy-dom/src/event/EventTarget.ts:132:9
- /local/myproject/node_modules/happy-dom/src/nodes/element/Element.ts:1171:29
```
We had previously been using
```
"@graphiql/plugin-explorer": "1.0.3",
"graphiql": "3.1.0",
```
Upon upgrading our packages, `@graphiql/plugin-explorer` upgraded to `1.0.4` and `@graphiql/react` to `0.20.4`, the above error started occurring.
### Expected Behavior
Out tests were previously been passing so I would expect them to continue with no changes
### Steps To Reproduce
Open this environment
https://stackblitz.com/edit/vitejs-vite-kkpoqd?file=vite.config.ts
Run `npx vitest`.
### Environment
* GraphiQL Version: 3.1.0
* OS: Linux
* Browser: N/A
* Bundler: ESBuild
* `react` Version: N/A
* `graphql` Version: 3.1.0
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.