โ† Back to Blog

Notes on lightweight tests

1 min readAtharva Tayade

Why the first tests live at the content seam โ€” validating data before it reaches the UI.

A small content seam catches most mistakes early: a missing Tag, a malformed Metric, or a Project pointing at a dead link fails validation long before a reader sees it.

import { describe, it, expect } from "vitest";
import { parseBlogPost } from "@/lib/content";

describe("content seam", () => {
  it("rejects a Blog Post missing its Tag", () => {
    expect(() =>
      parseBlogPost({ title: "Incomplete", date: "2026-01-01" }),
    ).toThrow();
  });
});

This Blog Post is Placeholder content โ€” swap it for real writing later.