fix @grafana/flamegraph types

This commit is contained in:
Ashley Harrison
2025-12-16 11:07:30 +00:00
parent d9059ca7b2
commit 494a663449
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@ jest.mock('react-use', () => {
return {
...reactUse,
useMeasure: () => {
const ref = React.useRef();
const ref = React.useRef(null);
return [ref, { width: 1600 }];
},
};
@@ -21,7 +21,7 @@ jest.mock('@grafana/assistant', () => ({
jest.mock('react-use', () => ({
...jest.requireActual('react-use'),
useMeasure: () => {
const ref = useRef();
const ref = useRef(null);
return [ref, { width: 1600 }];
},
}));