unwanted console.log[s] in integration tests output
- Dominant language
- JavaScript
- Stars
- 34
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with packages/datagator/src/lib/dynamodb/dynamodb.service.spec.ts and trace the output to node_modules/dynamodb-localhost/dynamodb/installer.js and node_modules/dynamodb-localhost/index.js. Verify that normal test runs are quiet while DEBUG=dynamodb-localhost:* still exposes debugging information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100