hunk.code_window:             PlatformTools.logCmdErr("Error during migration show:", err)
               process.exit(1)
           }
       }
   }
hunk.labels: add keep keep keep keep
hunk.after_edit:             if (dataSource) await dataSource.destroy()
  
hunk.file_path: src/commands/MigrationShowCommand.ts
hunk.type: add
file: import "reflect-metadata"
  import {
      createTestingConnections,
      closeTestingConnections,
      reloadTestingDatabases,
  } from "../../utils/test-utils"
  import { DataSource } from "../../../src/data-source/DataSource"
  import { Post } from "./entity/Post"
  
  describe("github issues > #2065 TypeError: Cannot convert object to primitive value", () => {
      let connections: DataSource[]
      before(
          async () =>
              (connections = await createTestingConnections({
                  entities: [__dirname + "/entity/*{.js,.ts}"],
                  schemaCreate: true,
                  dropSchema: true,
              })),
      )
      beforeEach(() => reloadTestingDatabases(connections))
      after(() => closeTestingConnections(connections))
  
      it("should save an entity created with Object.create(null)", () =>
          Promise.all(
              connections.map(async (connection) => {
                  const post = Object.create(null) as Post
                  post.id = 1
                  post.title = "Hello Post"
                  await connection.manager.save(Post, post)
              }),
          ))
  })
  