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? |
3 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions