Integration / Controller Tests Do Not Rollback Database #10861
Unanswered
angus-clark
asked this question in
Q&A
Replies: 0 comments
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.
-
I am writing some controller tests by injecting a
HttpClient
and hitting my endpoints. However if I call my create account endpoint in a test the database changes are not rolled back for the next test. Is this the expected behavior?I am connecting to a local postgres database for my tests.
Here is an example of my tests:
Beta Was this translation helpful? Give feedback.
All reactions