Skip to content

Commit

Permalink
silence these warns
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed May 9, 2024
1 parent 03af260 commit 6e6a94b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ afterEach(cleanup);

describe("CopyToClipboardButton", () => {
it("renders correctly", async () => {
// eslint-disable-next-line deprecation/deprecation
const component = renderer.create(<CopyToClipboardButton testId="copy-btn" content={"test"} />);
const tree = component.toJSON() as renderer.ReactTestRendererJSON;
expect(tree).toMatchSnapshot();
Expand Down
1 change: 1 addition & 0 deletions packages/ui/app/src/mdx/__test__/mdx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { replaceBrokenBrTags, serializeMdxWithFrontmatter } from "../mdx";

async function renderMdxContent(content: string): Promise<renderer.ReactTestRendererJSON> {
const serializedContent = await serializeMdxWithFrontmatter(content, { development: false });
// eslint-disable-next-line deprecation/deprecation
const result = renderer.create(createElement(MdxContent, { mdx: serializedContent })).toJSON();

assert(result != null);
Expand Down

0 comments on commit 6e6a94b

Please sign in to comment.