bito-code-review[bot] commented on code in PR #36708:
URL: https://github.com/apache/superset/pull/36708#discussion_r2641368918
##########
superset-frontend/src/components/Chart/chartReducers.test.js:
##########
@@ -60,4 +60,69 @@ describe('chart reducers', () => {
expect(newState[chartKey].chartUpdateEndTime).toBeGreaterThan(0);
expect(newState[chartKey].chartStatus).toEqual('failed');
});
+
+ test('should update form_data on chart update success', () => {
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Missing Jest global imports for test functions</b></div>
<div id="fix">
The `test` function is not defined. This file is missing Jest global
imports. Add `import { test, expect } from '@jest/globals';` or configure Jest
to provide these globals automatically via `setupFilesAfterEnv` or
`testEnvironment` settings.
</div>
<details>
<summary>
<b>Code suggestion</b>
</summary>
<blockquote>Check the AI-generated fix before applying</blockquote>
<div id="code">
```
@@ -1,3 +1,5 @@
+import { test, expect } from '@jest/globals';
+
import { chartReducer } from './chartReducers';
```
</div>
</details>
</div>
<small><i>Code Review Run #7bb28d</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]