mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore(lint): migrate Jest lint rules from eslint to oxlint (#37787)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -43,9 +43,8 @@ const mockEchart = jest.fn();
|
||||
jest.mock('../components/Echart', () => {
|
||||
const { forwardRef } = jest.requireActual<typeof import('react')>('react');
|
||||
const MockEchart = forwardRef<EchartsHandler | null, EchartsProps>(
|
||||
(props, ref) => {
|
||||
(props, _ref) => {
|
||||
mockEchart(props);
|
||||
void ref;
|
||||
return null;
|
||||
},
|
||||
);
|
||||
@@ -227,9 +226,7 @@ test('observes extra control height changes when ResizeObserver is available', a
|
||||
observeSpy(target);
|
||||
};
|
||||
|
||||
unobserve(_target: Element): void {
|
||||
void _target;
|
||||
}
|
||||
unobserve(_target: Element): void {}
|
||||
|
||||
disconnect = () => {
|
||||
disconnectSpy();
|
||||
|
||||
Reference in New Issue
Block a user