Skip to content

Commit

Permalink
fix: call redis.flush() on beforeAll()
Browse files Browse the repository at this point in the history
  • Loading branch information
ShookLyngs committed Aug 19, 2024
1 parent 9b0d981 commit 95fac7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/setup.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { afterAll, vi } from 'vitest';
import { beforeAll, vi } from 'vitest';
import container from '../src/container';

if (process.env.CI_REDIS_URL) {
vi.stubEnv('REDIS_URL', process.env.CI_REDIS_URL);
}

afterAll(async () => {
beforeAll(async () => {
container.cradle.redis.flushall();
});

0 comments on commit 95fac7e

Please # to comment.