diff --git a/src/link/__tests__/Link.test.tsx b/src/link/__tests__/Link.test.tsx
index 0366c0c73..58d9c5249 100644
--- a/src/link/__tests__/Link.test.tsx
+++ b/src/link/__tests__/Link.test.tsx
@@ -5,39 +5,87 @@ import { Link } from "../index";
describe("ReakitLink", () => {
it("should render correctly", () => {
- const { asFragment } = render(link);
+ const { baseElement } = render(link);
- expect(asFragment()).toMatchSnapshot();
+ expect(baseElement).toMatchInlineSnapshot(`
+
+
+
+ `);
});
it("should render correctly with isExternal", () => {
- const { asFragment } = render(
+ const { baseElement } = render(
link
,
);
- expect(asFragment()).toMatchSnapshot();
+ expect(baseElement).toMatchInlineSnapshot(`
+
+
+
+ `);
});
it("should render correctly with isExternal & disabled", () => {
- const { asFragment } = render(
+ const { baseElement } = render(
link
,
);
- expect(asFragment()).toMatchSnapshot();
+ expect(baseElement).toMatchInlineSnapshot(`
+
+
+
+ `);
});
it("should render correctly with non native link tag", () => {
- const { asFragment } = render(
+ const { baseElement } = render(
alert("Custom Link")}>
Reakit
,
);
- expect(asFragment()).toMatchSnapshot();
+ expect(baseElement).toMatchInlineSnapshot(`
+
+
+
+ Reakit
+
+
+
+ `);
});
test("Link renders with no a11y violations", async () => {
diff --git a/src/link/__tests__/__snapshots__/Link.test.tsx.snap b/src/link/__tests__/__snapshots__/Link.test.tsx.snap
deleted file mode 100644
index 81d1f7c15..000000000
--- a/src/link/__tests__/__snapshots__/Link.test.tsx.snap
+++ /dev/null
@@ -1,49 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`ReakitLink should render correctly 1`] = `
-
-
- link
-
-
-`;
-
-exports[`ReakitLink should render correctly with isExternal & disabled 1`] = `
-
-
- link
-
-
-`;
-
-exports[`ReakitLink should render correctly with isExternal 1`] = `
-
-
- link
-
-
-`;
-
-exports[`ReakitLink should render correctly with non native link tag 1`] = `
-
-
- Reakit
-
-
-`;