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.
14 lines
332 B
14 lines
332 B
5 years ago
|
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()
|
||
|
}
|