Adding a "silent" option
ChristopheBougere opened this issue · 2 comments
ChristopheBougere commented
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 commented
+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 = loggersimlu commented
You should take a look at https://github.com/simlu/lambda-tdd
Still early in development but so far it's working great.