/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import { render, waitFor } from "@testing-library/react"; import React from "react"; import ForceMergeAdvancedOptions, { ForceMergeOptionsProps } from "./ForceMergeAdvancedOptions"; import useField from "../../../../lib/field"; const WrappedComponent = (props: Partial) => { const field = useField(); return ; }; describe(" spec", () => { it("renders the component", async () => { const component = render(); // wait for one tick await waitFor(() => {}); expect(component).toMatchSnapshot(); }); });