Couldn't run e2e tests in parallel NestJS #97
Unanswered
kevindavee
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You either need to implement some locking in the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I want to run my jest e2e test in parallel. I run the migration on the App module
onModuleInit
. I initialized the Testing Module inbeforeAll
of my test file. I didn't run the jest test using--runInBand
because in the CI, I would like to have the test running in parallel. But I gotUniqueConstraintViolationException: create database "test" - duplicate key value violates unique constraint "pg_database_datname_index"
. Am I setting up the e2e test environment correctly?To Reproduce
Steps to reproduce the behavior:
onModuleInit
Expected behavior
I wanted to have my e2e tests running in parallel, and have my test database teared down everytime the test is finished.
Versions
Beta Was this translation helpful? Give feedback.
All reactions