hunk.code_window:         assert.strictEqual(connection.isConnected, true);
       });
       it("should create the whole path to database file for better-sqlite3", async function () {
           connection = await createConnection({
               "name": "better-sqlite3",
               "type": "better-sqlite3",
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:         // run test only if better-sqlite3 is enabled in ormconfig
           const isEnabled = getTypeOrmConfig().some(conf => conf.type === "better-sqlite3" && conf.skip === false);
           if (isEnabled === false) return;
  
hunk.file_path: test/github-issues/799/issue-799.ts
hunk.type: add
file: import "reflect-metadata";
  import {createTestingConnections, closeTestingConnections, reloadTestingDatabases} from "../../utils/test-utils";
  import {Connection} from "../../../src/connection/Connection";
  import {Foo} from "./entity/Foo";
  import {expect} from "chai";
  
  describe("github issues > #2499 Postgres DELETE query result is useless", () => {
  
      let connections: Connection[];
      before(async () => connections = await createTestingConnections({
          entities: [__dirname + "/entity/*{.js,.ts}"],
          schemaCreate: true,
          dropSchema: true,
          // skip test for sqlite because sqlite doesn't return any data on delete
          // sqljs -- the same
          // mongodb requires another test and it is also doesn't return correct number
          // of removed documents (possibly a bug with mongodb itself)
          enabledDrivers: ["mysql", "mariadb", "mssql", "postgres", "aurora-data-api"]
      }));
      beforeEach(() => reloadTestingDatabases(connections));
      after(() => closeTestingConnections(connections));
  
      it("should return correct number of affected rows for mysql, mariadb, postgres", () => Promise.all(connections.map(async connection => {
          const repo = connection.getRepository(Foo);
  
          await repo.save({ id: 1, description: "test1" });
          await repo.save({ id: 2, description: "test2" });
          await repo.save({ id: 3, description: "test3" });
  
          // number 4 doesn't exist
          const result = await repo.delete([1, 2, 3, 4]);
  
          expect(result.affected).to.eql(3);
      })));
  });
  