hunk.code_window:         }
       });
       it("should find the sqlite database if the cwd is changed", async function () {
           // run test only if sqlite3 is enabled in ormconfig
           const isEnabled = getTypeOrmConfig().some(conf => conf.type === "sqlite" && conf.skip === false)
           if (!isEnabled) return
           const options = await getConnectionOptions("sqlite");
           connection = await createConnection(options);
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:         const isEnabled = getTypeOrmConfig().some(conf => conf.type === "sqlite" && conf.skip === false);
           if (!isEnabled) return;
  
hunk.file_path: test/github-issues/798/issue-798.ts
hunk.type: replace
file: import "reflect-metadata";
  import * as assert from "assert";
  import {createConnection} from "../../../src/index";
  import rimraf from "rimraf";
  import {dirname} from "path";
  import {Connection} from "../../../src/connection/Connection";
  
  describe("github issues > #799 sqlite: 'database' path should be created", () => {
      let connection: Connection;
  
      const path = `${__dirname}/tmp/sqlitedb.db`;
      const cleanup = (done: () => void) => {
          rimraf(dirname(path), () => {
              return done();
          });
      };
  
      before(cleanup);
      after(cleanup);
  
      afterEach(() => {
          if (connection && connection.isConnected) {
              connection.close();
          }
      });
  
      it("should create the whole path to database file", async function () {
          connection = await createConnection({
              "name": "sqlite",
              "type": "sqlite",
              "database": path
          });
  
          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",
              "database": path
          });
  
          assert.strictEqual(connection.isConnected, true);
      });
  
  });
  