insomnia/app/__jest__/before-each.js
Gregory Schier 09c219fb6d More Plugin Hooks (#352)
* Playing around with pre-request hooks

* Added response hooks

* More flow types

* Flow types on wrapper.js

* Flow types on plugin folder

* Basic tests for plugin hooks

* Make DB initilize for all tests no matter what

* Touch
2017-07-19 18:55:40 -07:00

8 lines
214 B
JavaScript

import * as db from '../common/database';
import * as models from '../models';
export default function () {
// Setup the local database in case it's used
db.init(models.types(), {inMemoryOnly: true}, true);
}