Open dan-klasson opened 4 years ago
Same here, everything is getting committed and not rolled back.
Same issue. Anyone able to resolve this?
Same issue for me as well
I went with this other library: https://github.com/entrostat/typeorm-test-transactions
I went with this other library: https://github.com/entrostat/typeorm-test-transactions
Does this library work for you? For some reason, it's still not rolling back for me.
I "fixed" the issue by putting the source code directly into my repo, so the version of typeorm is the same between the typeorm-transactional-tests
code and my own code
@ewenw Yes. Make sure you wrap your test functions with runInTransaction
I did do that. Which typeOrm version are you running? Thanks for the help!
@ewenw 6.2.0
. Ask on that issue tracker and tag me if you need help.
I "fixed" the issue by putting the source code directly into my repo, so the version of typeorm is the same between the
typeorm-transactional-tests
code and my own code
If this is the case, make sure you are using the same version of typeorm as the library. or force dependency hoisting. I don't think its an issue with this library isn't it?
Doesn't seem to be working:
Output: