Files
coder/site/components/Navbar/index.test.tsx
Bryan 423611b001 chore: Add initial jest tests + code coverage (#13)
- Adds initial infra for running front-end tests (`jest`, `ts-jest`, `jest.config.js`, etc)
- Adds codecov integration front-end code
2022-01-13 18:48:23 -08:00

16 lines
332 B
TypeScript

import React from "react"
import { screen } from "@testing-library/react"
import { render } from "../../test_helpers"
import { Navbar } from "./index"
describe("Navbar", () => {
it("renders content", async () => {
// When
render(<Navbar />)
// Then
await screen.findAllByText("Coder", { exact: false })
})
})