18 lines · 428 B · TypeScript
RawDownload
import * as fs from "node:fs";import * as path from "node:path";import { afterAll } from "vitest"; const sqlitePath = path.join(  import.meta.dirname,  "../node_modules/sqlite.sqlite",);const prismaDir = path.join(import.meta.dirname, "./prisma"); const cleanupFiles = () => {  fs.rmSync(sqlitePath, { force: true });  fs.rmSync(prismaDir, { recursive: true, force: true });}; afterAll(() => {  cleanupFiles();});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t