insomnia/packages/insomnia-app/app/__jest__/before-each.js
2020-07-07 10:59:56 +12:00

11 lines
348 B
JavaScript

import * as db from '../common/database';
import * as models from '../models';
import * as fetch from '../account/fetch';
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, () => {});
}