Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a "silent" option #14

Open
ChristopheBougere opened this issue Aug 7, 2017 · 2 comments
Open

Adding a "silent" option #14

ChristopheBougere opened this issue Aug 7, 2017 · 2 comments

Comments

@ChristopheBougere
Copy link

Hi,

What do you think about adding a silent option to run()? I'm using lambda-wrapper via serverless-jest-plugin, and I would like to see only jest output, and node the lambda output...

Does it make sense? Any idea on how I could do that?

Thanks

@jeremydaly
Copy link

+1 for this. I've tried the following for serverless with mocha, but it feels very hacky:

let logger = console.log

beforeEach(function() {
  // Suppress logging
  console.log = function() {}
});

Then after the wrapper promise resolves:

console.log = logger

@simlu
Copy link
Contributor

simlu commented Nov 19, 2017

You should take a look at https://github.com/simlu/lambda-tdd

Still early in development but so far it's working great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants