From c73b7f66a307ec9033e1088ee2bc1fa8f3900219 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Wed, 6 Apr 2022 09:31:16 -0700 Subject: [PATCH] server: move middleware tests to middleware/__tests__, set yarn test to mute console logs --- server/package.json | 2 +- .../{__tests__/middleware => middleware/__tests__}/is-admin.ts | 0 .../lib/{__tests__/middleware => middleware/__tests__}/jwt.ts | 0 .../middleware => middleware/__tests__}/secret-key.ts | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename server/src/lib/{__tests__/middleware => middleware/__tests__}/is-admin.ts (100%) rename server/src/lib/{__tests__/middleware => middleware/__tests__}/jwt.ts (100%) rename server/src/lib/{__tests__/middleware => middleware/__tests__}/secret-key.ts (100%) diff --git a/server/package.json b/server/package.json index 766e7c77..1ef6b277 100644 --- a/server/package.json +++ b/server/package.json @@ -12,7 +12,7 @@ "migrate:down": "ts-node migrate down", "migrate": "ts-node migrate", "lint": "prettier --config .prettierrc 'src/**/*.ts' 'index.ts' --write", - "test": "jest" + "test": "jest --silent" }, "author": "", "license": "ISC", diff --git a/server/src/lib/__tests__/middleware/is-admin.ts b/server/src/lib/middleware/__tests__/is-admin.ts similarity index 100% rename from server/src/lib/__tests__/middleware/is-admin.ts rename to server/src/lib/middleware/__tests__/is-admin.ts diff --git a/server/src/lib/__tests__/middleware/jwt.ts b/server/src/lib/middleware/__tests__/jwt.ts similarity index 100% rename from server/src/lib/__tests__/middleware/jwt.ts rename to server/src/lib/middleware/__tests__/jwt.ts diff --git a/server/src/lib/__tests__/middleware/secret-key.ts b/server/src/lib/middleware/__tests__/secret-key.ts similarity index 100% rename from server/src/lib/__tests__/middleware/secret-key.ts rename to server/src/lib/middleware/__tests__/secret-key.ts