import * as Optuna from "@optuna/types" import { render, screen } from "@testing-library/react" import React from "react" import { describe, expect, test } from "vitest" import { PlotImportance } from "../src/components/PlotImportance" describe("PlotImportance Tests", async () => { const setup = ({ study, importance, dataTestId, }: { study: Optuna.Study importance: Optuna.ParamImportance[][] dataTestId: string }) => { const Wrapper = ({ dataTestId, children, }: { dataTestId: string children: React.ReactNode }) =>