Closed highflying closed 4 years ago
post your code as well
Hey @highflying I've had this before, it's when you don't name your connection. So, for example, when you're creating a TypeORM
connection, the JSON
object would look like this:
{
type: 'postgres',
host: process.env.DB_HOST,
port: process.env.DB_PORT,
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
name: 'default',
database: process.env.DB_DATABASE
}
Check out the example for more than one connection in the TypeORM
documentation here.
I'm getting the error:
This is when running a test under
runInTransaction
after having created a default connection withcreateConnection