mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 03:22:14 +00:00
test: Reset db before running e2e tests
This commit is contained in:
parent
88ef920a2f
commit
3ffb84d890
1 changed files with 5 additions and 0 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue