A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
First off thanks a lot for this package! I was frustrated with the way transactions work in typeorm having to pass an EntityManager around so this is super helpful 😄
This PR adds unit testing info and a mock for Jest (found in #2). Figured this would be useful for anyone else trying to run @Transactional functions in unit tests that don't touch the database.
First off thanks a lot for this package! I was frustrated with the way transactions work in typeorm having to pass an EntityManager around so this is super helpful 😄
This PR adds unit testing info and a mock for Jest (found in #2). Figured this would be useful for anyone else trying to run
@Transactional
functions in unit tests that don't touch the database.