From 5ea6e3aa99c00230f080b4e83ce031976484528a Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 18 Oct 2024 20:43:08 +0800 Subject: [PATCH] Decrease test coverage for apps/docs --- apps/docs/app/about.tsx | 3 +++ apps/docs/app/home.test.tsx | 13 +++++++++++++ apps/docs/app/home.tsx | 3 +++ 3 files changed, 19 insertions(+) create mode 100644 apps/docs/app/about.tsx create mode 100644 apps/docs/app/home.test.tsx create mode 100644 apps/docs/app/home.tsx diff --git a/apps/docs/app/about.tsx b/apps/docs/app/about.tsx new file mode 100644 index 0000000..8449be6 --- /dev/null +++ b/apps/docs/app/about.tsx @@ -0,0 +1,3 @@ +export default function Page() { + return

About

; +} diff --git a/apps/docs/app/home.test.tsx b/apps/docs/app/home.test.tsx new file mode 100644 index 0000000..3752942 --- /dev/null +++ b/apps/docs/app/home.test.tsx @@ -0,0 +1,13 @@ +import { describe, expect, it } from "@jest/globals"; +import { render, screen } from "@testing-library/react"; +import Home from "./home"; + +describe("Page", () => { + it("renders a heading", () => { + render(); + + const heading = screen.getByRole("heading", { level: 1 }); + + expect(heading).toBeInTheDocument(); + }); +}); diff --git a/apps/docs/app/home.tsx b/apps/docs/app/home.tsx new file mode 100644 index 0000000..3b7bbc1 --- /dev/null +++ b/apps/docs/app/home.tsx @@ -0,0 +1,3 @@ +export default function Page() { + return

Home

; +}