test: add bun test runner
This commit is contained in:
8
apps/web/src/__tests__/smoke.test.ts
Normal file
8
apps/web/src/__tests__/smoke.test.ts
Normal file
@@ -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");
|
||||||
|
});
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"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",
|
"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 .",
|
"lint": "bunx eslint .",
|
||||||
"format": "bunx prettier . --check"
|
"format": "bunx prettier . --check"
|
||||||
|
|||||||
Reference in New Issue
Block a user