bito-code-review[bot] commented on code in PR #36708:
URL: https://github.com/apache/superset/pull/36708#discussion_r2684681191
##########
superset-frontend/src/components/Chart/chartReducers.test.js:
##########
@@ -19,45 +19,136 @@
import chartReducer, { chart } from 'src/components/Chart/chartReducer';
import * as actions from 'src/components/Chart/chartAction';
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Missing Jest test function import</b></div>
<div id="fix">
The `test` function is not defined. This occurs because the ESLint disable
comment for `describe` blocks was removed, but `test` and `expect` are not
imported from Jest. Add `import { test, expect } from '@jest/globals';` or
configure Jest globals in your test setup file.
</div>
<details>
<summary>
<b>Code suggestion</b>
</summary>
<blockquote>Check the AI-generated fix before applying</blockquote>
<div id="code">
````suggestion
import chartReducer, { chart } from 'src/components/Chart/chartReducer';
import * as actions from 'src/components/Chart/chartAction';
import { test, expect } from '@jest/globals';
````
</div>
</details>
</div>
<small><i>Code Review Run #692371</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
##########
superset-frontend/src/components/Chart/chartReducers.test.js:
##########
@@ -19,45 +19,136 @@
import chartReducer, { chart } from 'src/components/Chart/chartReducer';
import * as actions from 'src/components/Chart/chartAction';
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Missing Jest expect function import</b></div>
<div id="fix">
The `expect` function is not defined at multiple lines (38, 39, 64, 65, 94,
95, 96, 97, 123, 124, 151, 152, 153). This is a consequence of the same import
issue as `test`. Add the necessary Jest imports to resolve all instances.
</div>
<details>
<summary>
<b>Code suggestion</b>
</summary>
<blockquote>Check the AI-generated fix before applying</blockquote>
<div id="code">
````suggestion
import chartReducer, { chart } from 'src/components/Chart/chartReducer';
import * as actions from 'src/components/Chart/chartAction';
import { test, expect } from '@jest/globals';
````
</div>
</details>
</div>
<small><i>Code Review Run #692371</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
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]