You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
332 B
13 lines
332 B
require("dotenv").config()
|
|
import { createConnection } from "typeorm"
|
|
import { testingConnectionOptions } from "./server/testing"
|
|
|
|
module.exports = async function() {
|
|
const connection = await createConnection({
|
|
...testingConnectionOptions(),
|
|
dropSchema: true,
|
|
synchronize: true,
|
|
})
|
|
|
|
await connection.close()
|
|
}
|
|
|