Replies: 2 comments 2 replies
-
See here. If your issue is however specifically with tests, you can deactivate all warnings, using |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm not entirely sure how that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use the database object in a test, and in the same test, I mock a helper function which also uses the database, I get the error:
Creating a duplicate database object for the same connection
Any idea why this is?
Here is a minimal reproducible example:
https://github.com/tomskopek/pg-promise-duplicate-database-object-jest-mock-example
Beta Was this translation helpful? Give feedback.
All reactions