Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: what happens if I use a transaction in my tested code? #4

Open
luisrudge opened this issue Mar 23, 2023 · 1 comment
Open

Comments

@luisrudge
Copy link

since you're using transactions to isolate each test, can I still use a transaction inside my code?

@subvertallchris
Copy link

From the docs, it looks like it uses a SAVEPOINT as long as you change the config slightly. https://github.com/Quramy/jest-prisma?tab=readme-ov-file#transaction-rollback. The implementation is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants