You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eventually, "npm test" will run all test suites in parallel. I have two options:
Either refactor the code to use "clients" from the pool which will give me transaction management. This way I can easily commit transactions and roll them back after every test-suite is run without having to reset the db each time.
Spin up a new db instance (Docker?) for each individual test-suite. After each test-suite finishes, I then just discard its db image.
Eventually, "npm test" will run all test suites in parallel. I have two options:
Either refactor the code to use "clients" from the pool which will give me transaction management. This way I can easily commit transactions and roll them back after every test-suite is run without having to reset the db each time.
Spin up a new db instance (Docker?) for each individual test-suite. After each test-suite finishes, I then just discard its db image.
The text was updated successfully, but these errors were encountered: