mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
have teardown clear all data in redis before starting next test
This commit is contained in:
@@ -28,6 +28,7 @@ class RedisNotificationRepositoryHolder implements RepositoryHolder {
|
||||
}
|
||||
teardown = async () => {
|
||||
if (this.repo) {
|
||||
await this.repo.clearAllData();
|
||||
await this.repo.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user