An example on how to create E2E/Integration tests with NestJS and TestContainers
Check full tutorial on DEV.to .
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# init prisma
$ npx prisma init
# migrate
$ npx prisma migrate dev --name init
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov