mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
test: Reset db before running e2e tests
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
import fs from 'fs';
|
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
|
// based on https://github.com/angular/protractor/issues/114#issuecomment-29046939
|
||||||
afterEach(async function () {
|
afterEach(async function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user