()
| 3 | import { disposeAllInstances } from "./fixture" |
| 4 | |
| 5 | export async function resetDatabase() { |
| 6 | await disposeAllInstances().catch(() => undefined) |
| 7 | const dbPath = Database.path() |
| 8 | await rm(dbPath, { force: true }).catch(() => undefined) |
| 9 | await rm(`${dbPath}-wal`, { force: true }).catch(() => undefined) |
| 10 | await rm(`${dbPath}-shm`, { force: true }).catch(() => undefined) |
| 11 | } |