testcontainers / testcontainers-node

Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
https://testcontainers.com
MIT License
1.94k stars 195 forks source link

Add `stdout` and `stderr` fields to container exec result #874

Open chungjung-d opened 21 hours ago

chungjung-d commented 21 hours ago

Add stderr output for exec function on issue #842

I chose not to add an outputMode option to the existing exec function because it would compromise the integrity of the current ExecResult type. Instead, I implemented a new execVerbose function to provide separate handling and output for stdout and stderr.

netlify[bot] commented 21 hours ago

Deploy Preview for testcontainers-node ready!

Name Link
Latest commit ba36f28ec0719cbb8dc24229253c87c8c3cbe39c
Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67447f0478e9ee00087d979a
Deploy Preview https://deploy-preview-874--testcontainers-node.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

cristianrgreco commented 2 hours ago

@chungjung-d Pls run an npm run format.