import { Connection } from "typeorm"; import { User } from "./entities/User"; export async function smokeTest(connection: Connection) { const user = new User(); user.name = "admin"; user.role = "admin"; user.createdAt = Date.now(); user.passwordHash = "pretend this is a hash"; await connection.manager.save(user); }