diff --git a/lib/aws/aws.mod.test.ts b/lib/aws/aws.mod.test.ts index 2a9340a..4ba8e65 100644 --- a/lib/aws/aws.mod.test.ts +++ b/lib/aws/aws.mod.test.ts @@ -13,7 +13,7 @@ import { } from "@aws-sdk/client-s3"; describe("AWS S3 integration tests with LocalStack", () => { - beforeEach(async () => { + beforeAll(async () => { try { await s3.send(new CreateBucketCommand({ Bucket: "test-bucket" })); } catch (error) { diff --git a/package.json b/package.json index d40e92e..8c58291 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "db:format": "npx prisma format", "db:seed": "npx prisma db seed", "db:push": "npx prisma db push", - "test": "docker compose up -d --remove-orphans && npm run db:push && npx jest --detectOpenHandles --forceExit --silent" + "test": "docker compose up -d --remove-orphans && npm run db:push && npx jest --detectOpenHandles --forceExit --runInBand" }, "prisma": { "schema": "lib/db/schema.prisma",