- Strapi Version: 4.15.4, 4.15.2, 4.10.8:
- Operating System: MacOS 13.0:
- Database: PosgreSQL / sqlite3:
- Node Version: v20.5.1:
- NPM Version: 9.8.0:
- Yarn Version:
I followed the guide at Testing | Strapi Documentation up to and including the headline Test a Strapi Instance Testing | Strapi Documentation . When running the test, I get the following error:
During setup I received the error:
TypeError: Cannot destructure property ‘client’ of ‘db.config.connection’ as it is undefined.
And during cleanUp I received the error:
TypeError: Cannot read properties of undefined (reading ‘connection’)
During development, I am using postgres, however, the test database configuration is set to sqlite according to the guide. I am using TypeScript. The errors were observed with strapi version 4.15.2, 4.15.4 and 4.10.5.
Does anyone know how to fix this?