-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
I have a fairly simple test but when I try to use the package I get a corruption error, any ideas?
Sample code below:
const chai = require('chai');
chai.should();
const AWS = require('../../src/services/aws');
const DynamoDbLocal = require('dynamodb-local');
const dynamoLocalPort = 8000;
// optional config customization - default is your OS' temp directory and an Amazon server from US West
DynamoDbLocal.configureInstaller({
installPath: './dynamodblocal-bin',
});
const VenuesService = require('../../src/services/venues.service');
describe.only('Venues Service test', () => {
before(async () => {
this.venuesService = new VenuesService(AWS);
this.child = await DynamoDbLocal.launch(dynamoLocalPort, null, [], false, true);
console.log(`Started Local DynamoDB - PID [${this.child.pid}]`);
});
after(async () => {
await DynamoDbLocal.stopChild(this.child);
});
describe('a test', () => {
it('should pass', async () => {
const exampleVenue = require('../data/dummy_venue');
await this.venuesService.createVenue(exampleVenue);
done();
});
});
});
I see it downloading the jar to ./dynamodblocal-bin
Any ideas on this, what am I missing?
thanks in advance
AlessandroVol23 and sudarshan-plus
Metadata
Metadata
Assignees
Labels
No labels