Skip to content

Commit

Permalink
chore(zero-cache): clean up data after test (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkgnotic authored Dec 18, 2024
1 parent 5ebd798 commit 40d47d1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {LogContext} from '@rocicorp/logger';
import {beforeEach, describe, expect, test} from 'vitest';
import {afterEach, beforeEach, describe, expect, test} from 'vitest';
import {createSilentLogContext} from '../../../../shared/src/logging-test-utils.js';
import type {AST} from '../../../../zero-protocol/src/ast.js';
import type {Database as DB} from '../../../../zqlite/src/db.js';
Expand Down Expand Up @@ -88,6 +88,10 @@ describe('view-syncer/pipeline-driver', () => {
replicator = fakeReplicator(lc, db);
});

afterEach(() => {
dbFile.delete();
});

const ISSUES_AND_COMMENTS: AST = {
table: 'issues',
orderBy: [['id', 'desc']],
Expand Down

0 comments on commit 40d47d1

Please sign in to comment.