Skip to content

unwanted console.log[s] in integration tests output #54

Description

@davidecavaliere

Running the following test:


describe('DynamodbService', () => {
  let instance: UserPersistenceService;

  beforeEach(() => {
    instance = new UserPersistenceService();
    dynamodb.install();
    dynamodb.start({
      port: 8000
    });
  });

  it('can be instantiated', () => {

    expect(instance instanceof UserPersistenceService).toBeTruthy();
  });


  afterEach(() => {
    dynamodb.stop({
      port: 8000
    })
  });
});

produces the following output in tests results:

 PASS  packages/datagator/src/lib/dynamodb/dynamodb.service.spec.ts (6.001s)
  ● Console

    console.log node_modules/dynamodb-localhost/dynamodb/installer.js:12
      Started downloading dynamodb-local from http://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz into /home/developer/src/microgamma/node_modules/dynamodb-localhost/dynamodb/bin. Process may take few minutes.
    console.log node_modules/dynamodb-localhost/index.js:30
      Dynamodb Local Started, Visit: http://localhost:8000/shell

I expect the output to be clean and to still be able to get debugging info if wanted using DEBUG=dynamodb-localhost:* environment variable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions