(
path: string,
options?: { readonly?: boolean; readwrite?: boolean },
)
| 15 | * `new Database(...)` in a test reintroduces the flake. |
| 16 | */ |
| 17 | export function openTestDb( |
| 18 | path: string, |
| 19 | options?: { readonly?: boolean; readwrite?: boolean }, |
| 20 | ): Database { |
| 21 | const db = new Database(path, options); |
| 22 | db.exec("PRAGMA busy_timeout=5000"); |
| 23 | return db; |
| 24 | } |
no outgoing calls