mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
17 lines
390 B
TypeScript
17 lines
390 B
TypeScript
import * as fetch from '../account/fetch';
|
|
import { database as db } from '../common/database';
|
|
import * as models from '../models';
|
|
|
|
export async function globalBeforeEach() {
|
|
// Setup the local database in case it's used
|
|
fetch.setup('insomnia-tests', 'http://localhost:8000');
|
|
await db.init(
|
|
models.types(),
|
|
{
|
|
inMemoryOnly: true,
|
|
},
|
|
true,
|
|
() => {},
|
|
);
|
|
}
|