/// <reference lib="dom" />

import { test, expect } from "bun:test";
import { render, screen } from "@testing-library/react";
import "@testing-library/jest-dom";
import { App } from "./App";
import { BrowserRouter } from "react-router";
import { posts } from "./lib/post";

test("renders app page", () => {
  render(
    <BrowserRouter>
      <App />
    </BrowserRouter>,
  );
  expect(screen.getAllByRole("heading")).toHaveLength(posts.length + 1);
});
