From ddedfda976aa9ac2cf46f1b6dded2174aab8678d Mon Sep 17 00:00:00 2001 From: William Valentin Date: Sat, 31 Jan 2026 23:43:54 -0800 Subject: [PATCH] test: add bun test runner --- apps/web/src/__tests__/smoke.test.ts | 8 ++++++++ package.json | 1 + 2 files changed, 9 insertions(+) create mode 100644 apps/web/src/__tests__/smoke.test.ts diff --git a/apps/web/src/__tests__/smoke.test.ts b/apps/web/src/__tests__/smoke.test.ts new file mode 100644 index 0000000..a634d19 --- /dev/null +++ b/apps/web/src/__tests__/smoke.test.ts @@ -0,0 +1,8 @@ +import { expect, test } from "bun:test"; + +test("bun test runs", () => expect(1 + 1).toBe(2)); + +test("package.json has bun test script", async () => { + const pkg = await import("../../../../package.json"); + expect(pkg.scripts.test).toBe("bun test"); +}); diff --git a/package.json b/package.json index b4d6506..f111731 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "packages/*" ], "scripts": { + "test": "bun test", "typecheck": "bunx tsc -p packages/config/tsconfig.json --noEmit && bunx tsc -p packages/db/tsconfig.json --noEmit && bunx tsc -p packages/minio/tsconfig.json --noEmit && bunx tsc -p packages/queue/tsconfig.json --noEmit && bunx tsc -p apps/worker/tsconfig.json --noEmit && bunx tsc -p apps/web/tsconfig.json --noEmit", "lint": "bunx eslint .", "format": "bunx prettier . --check"