When testing, if there are issues connecting to the AppDataSource, make sure that any before and after hooks are inside the describe block! Make sure it is before the it! Additionally, make sure we initialize the AppDataSource using AppDataSource.initialize() in the before hook, and then destroy the connection with AppDataSource.destroy()
When testing, if there are issues connecting to the AppDataSource, make sure that any
before
andafter
hooks are inside thedescribe
block! Make sure it is before theit
! Additionally, make sure we initialize the AppDataSource usingAppDataSource.initialize()
in the before hook, and then destroy the connection withAppDataSource.destroy()