This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
typeorm: tests are not closing the connection when failing #168
Labels
good first issue
Good for newcomers
typeorm tests are creating a new db connection in each test. If something goes wrong (assertion fails, exception thrown), the test does not close this connection which causes the following tests to fail as well.
We need to move the logic into
afterEach
hook so tests clean the environment after they are done for whatever reason.The text was updated successfully, but these errors were encountered: