FlameGraph: Use named imports (#104042)

* FlameGraph: Use named imports

* Fix test imports
This commit is contained in:
Piotr Jamróz
2025-05-05 13:20:01 +02:00
committed by GitHub
parent 1058a1a3f1
commit d4fd3aa7c7
2 changed files with 2 additions and 2 deletions
@@ -9,6 +9,7 @@ import FlameGraphContainer from './FlameGraphContainer';
import { MIN_WIDTH_TO_SHOW_BOTH_TOPTABLE_AND_FLAMEGRAPH } from './constants';
jest.mock('react-use', () => ({
...jest.requireActual('react-use'),
useMeasure: () => {
const ref = useRef();
return [ref, { width: 1600 }];