lambda-wrapper icon indicating copy to clipboard operation
lambda-wrapper copied to clipboard

Adding a "silent" option

Open ChristopheBougere opened this issue 8 years ago • 2 comments

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

ChristopheBougere avatar Aug 07 '17 12:08 ChristopheBougere

+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

jeremydaly avatar Oct 23 '17 23:10 jeremydaly

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

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

simlu avatar Nov 19 '17 08:11 simlu