message: chore(test/utils/connect): move "strictQuery" setting to before creating both connections
diff: @@ -34,10 +34,11 @@ export async function connect(extraConfig: ExtraConnectionConfig = {}): Promise<
  // to not duplicate code
  const connectionString = `${process.env.MONGO_URI}/${extraConfig.dbName ?? config.DataBase}`;
  + mongoose.set('strictQuery', false); // TODO: remove in mongoose 7, disabled deprecation warning
  +
  if (extraConfig.createNewConnection) {
  connection = await mongooseInstance.createConnection(connectionString, options).asPromise();
  } else {
  - mongoose.set('strictQuery', false); // TODO: remove in mongoose 7, disabled deprecation warning
  await mongoose.connect(connectionString, options);
  connection = mongooseInstance.connection;
  }
  