Test fixes
This commit is contained in:
@@ -6,5 +6,6 @@
|
||||
"setupFiles": [
|
||||
"<rootDir>/__mocks__/console.js",
|
||||
"./server/test/helper.js"
|
||||
]
|
||||
],
|
||||
"testEnvironment": "node"
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@ import { flushdb, seed, sequelize } from '../test/support';
|
||||
|
||||
const server = new TestServer(app.callback());
|
||||
|
||||
beforeEach(flushdb);
|
||||
beforeEach(seed);
|
||||
afterEach(flushdb);
|
||||
afterAll(() => server.close());
|
||||
afterAll(() => sequelize.close());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user