import { jsx as _jsx } from "react/jsx-runtime";
import { render, cleanup, fireEvent } from "@testing-library/react";
import Slider from "./";
afterEach(cleanup);
it.skip("Slider changes its value when dragged", () => {
    let value = 0;
    const setValue = (v) => {
        console.log("Received => ", v);
        value = v;
    };
    const MIN = 0;
    const MAX = 20;
    const { container, getByRole } = render(_jsx(Slider, { defaultValue: 0, step: 0.1, min: MIN, max: MAX, onChange: (_, v) => setValue(v), formatValue: (v) => `${v}` }));
    expect(container.firstChild).toMatchSnapshot();
    let thumb = getByRole("slider");
    fireEvent.mouseDown(thumb);
    fireEvent.mouseMove(thumb, {
        clientX: 10,
    });
    fireEvent.mouseUp(thumb);
    expect(value).toBeGreaterThan(0);
});
//# sourceMappingURL=index.test.js.map