Trendyol / jest-testcontainers

Jest preset for running docker containers with your tests
MIT License
122 stars 16 forks source link

feat(mounts): add bind mounts for containers #10

Closed davidlj95 closed 4 years ago

davidlj95 commented 4 years ago

Add support for bind mounts leveraging the testcontainers library feature:

https://github.com/testcontainers/testcontainers-node/blob/90a6e5cd213baa3c47c0c39abf894def14838a09/src/generic-container.ts#L106-L117

It's great when you have to run some custom scripts to init the container (for instance some SQL queries to create the database schema in relational databases)

Yengas commented 4 years ago

Sorry for the late response. I somehow missed your PRs. The code looks ok to me. I will merge and test it asap. I will also update dependencies and publish a new version. Thanks for your contribution.

davidlj95 commented 4 years ago

Don't worry! Thanks for the project, was helpful to us 👍