diff --git a/tests/integration/dynamodb.test.ts b/tests/integration/dynamodb.test.ts index 798e89f..952a067 100644 --- a/tests/integration/dynamodb.test.ts +++ b/tests/integration/dynamodb.test.ts @@ -23,10 +23,11 @@ describe('DynamoDB (integration)', () => { }); }); - afterAll(async () => { +afterAll(async () => { + if (floci) { await floci.stop(); - }); - + } +}); it('creates an ACTIVE table', async () => { const tableName = `users-${Date.now()}`; await ddb.send( diff --git a/tests/integration/s3.test.ts b/tests/integration/s3.test.ts index 9fc7578..d3e1c35 100644 --- a/tests/integration/s3.test.ts +++ b/tests/integration/s3.test.ts @@ -25,8 +25,10 @@ describe('S3 (integration)', () => { }); afterAll(async () => { + if (floci) { await floci.stop(); - }); + } +}); it('creates and lists a bucket', async () => { const bucketName = `test-bucket-${Date.now()}`; diff --git a/tests/integration/sqs.test.ts b/tests/integration/sqs.test.ts index 9ed9857..032f7d9 100644 --- a/tests/integration/sqs.test.ts +++ b/tests/integration/sqs.test.ts @@ -22,9 +22,11 @@ describe('SQS (integration)', () => { }); }); - afterAll(async () => { +afterAll(async () => { + if (floci) { await floci.stop(); - }); + } +}); it('sends and receives a message', async () => { const { QueueUrl } = await sqs.send(