Skip to content

Commit

Permalink
chore: start DynamoDB local with docker-compose
Browse files Browse the repository at this point in the history
This removes the need for starting it separately, leaving the use with
only one command to run before running tests
  • Loading branch information
mroderick committed Dec 23, 2023
1 parent 1c7a92e commit 8e386cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ services:
container_name: cache
ports:
- 6379:6379
dynamodb:
image: amazon/dynamodb-local
container_name: dynamo
ports:
- 8000:8000
4 changes: 0 additions & 4 deletions test/RateLimiterDynamo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ const { describe, it } = require('mocha');
const RateLimiterDynamo = require('../lib/RateLimiterDynamo');
const sinon = require('sinon');

/*
In order to perform this tests, you need to run a local instance of dynamodb:
docker run -p 8000:8000 amazon/dynamodb-local
*/
describe('RateLimiterDynamo with fixed window', function RateLimiterDynamoTest() {
this.timeout(5000);

Expand Down

0 comments on commit 8e386cf

Please sign in to comment.