mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
test: Reset db before running e2e tests
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import fs from 'fs';
|
||||
import { resetHabiticaDB } from '../helpers/api-integration/mongo';
|
||||
|
||||
before(async () => {
|
||||
await resetHabiticaDB();
|
||||
})
|
||||
|
||||
// based on https://github.com/angular/protractor/issues/114#issuecomment-29046939
|
||||
afterEach(async function () {
|
||||
|
||||
Reference in New Issue
Block a user