Using in TypeOrm in Nestjs #124
Replies: 4 comments
-
Ok, |
Beta Was this translation helpful? Give feedback.
-
Now the issue is:
Does pg-mem support internal tabkes such as pg_views? |
Beta Was this translation helpful? Give feedback.
-
In case someone needs this, I have a working example: https://gist.github.com/navjotahuja92/f51601b17fb248cf4727b5650d945607 |
Beta Was this translation helpful? Give feedback.
-
how can I use |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'd like to use pg-mem as a mock DB for component testing.
I guess my question is how to incorporate pg-mem into Nestjs' TypeOrmModule?
This is what I tried:
but I get a "AlreadyHasActiveConnectionError: Cannot create a new connection named "default", because connection with such name already exist and it now has an active connection session." error when running
Any suggestion how to make it work?
Beta Was this translation helpful? Give feedback.
All reactions