10LOC

#test-fixtures

Bunintermediate

A tiny Bun test fixture helper

import { beforeEach, afterEach, test, expect } from "bun:test";
import { file } from "bun";
import { mkdtemp, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";

Keep Bun tests small by extracting repeated setup into a fixture helper.