Open goodstemy opened 10 months ago
Actually problem because typeorm added DataSource
class only in version 0.3.0 and higher.
I think really matter update package json and update peer deps with 0.3.0 version of typeorm.
"peerDependencies": {
"knex": ">=0.20",
"pg-promise": ">=10.8.7",
"slonik": ">=23.0.1",
"typeorm": ">=0.2.29" // here
},
And I think really matter to update wiki for usage pg-mem with typeorm.
https://github.com/oguimbal/pg-mem/wiki/Libraries-adapters#-typeorm
Change createTypeormConnection
-> createTypeormDataSource
.
Describe the bug
Trying to write tests based on this example using
createTypeormDataSource
.Also
createTypeormConnection
works fine beside another problem from my other issue.To Reproduce
pg-mem version and another deps