korbit-ai[bot] commented on code in PR #33854:
URL: https://github.com/apache/superset/pull/33854#discussion_r2160284143
##########
superset-frontend/jest.config.js:
##########
@@ -32,7 +32,7 @@ module.exports = {
'<rootDir>/node_modules/@superset-ui/$1/src/$2',
'^@superset-ui/([^/]+)$': '<rootDir>/node_modules/@superset-ui/$1/src',
},
- testEnvironment: 'jsdom',
+ testEnvironment: '<rootDir>/spec/helpers/jsDomWithFetchAPI.ts',
Review Comment:
### Missing explanation for custom test environment <sub></sub>
<details>
<summary>Tell me more</summary>
###### What is the issue?
The custom test environment file requires documentation about its purpose
and differences from the standard 'jsdom' environment it replaces.
###### Why this matters
Without understanding why a custom test environment is used, developers may
revert to the standard jsdom environment, potentially breaking tests that rely
on fetch API functionality.
###### Suggested change ∙ *Feature Preview*
// Custom test environment that extends jsdom with fetch API support
testEnvironment: '<rootDir>/spec/helpers/jsDomWithFetchAPI.ts',
###### Provide feedback to improve future suggestions
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d7e51330-f69c-4fdf-880f-770f640b8353/upvote)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d7e51330-f69c-4fdf-880f-770f640b8353?what_not_true=true)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d7e51330-f69c-4fdf-880f-770f640b8353?what_out_of_scope=true)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d7e51330-f69c-4fdf-880f-770f640b8353?what_not_in_standard=true)
[](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d7e51330-f69c-4fdf-880f-770f640b8353)
</details>
<sub>
💬 Looking for more details? Reply to this comment to chat with Korbit.
</sub>
<!--- korbi internal id:b18b9426-32c9-42cd-af5a-bb85a597ad71 -->
[](b18b9426-32c9-42cd-af5a-bb85a597ad71)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]