Replies: 3 comments 3 replies
-
Would you like to do this purely with js/ts code, or would you like to use shell scripts as a part of the test flow? |
Beta Was this translation helpful? Give feedback.
-
You should look into TestContainers |
Beta Was this translation helpful? Give feedback.
-
Yes, you can automate spinning up a Docker container for Postgres during the test phase using tools like Testcontainers, Docker Compose, or by scripting it directly in your test setup. ✅ Best Option: Use Testcontainers to programmatically manage the lifecycle of Docker containers during your tests. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
First of all, thank you to the author of this repository, it is really helpful.
I took a look at the TypeORM sample and it looks like we need to manually start the docker image to be able to run the integration tests.
I guess my question is, is there a way to make NestJS automatically spin up the docker image during the test phase?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions