()
| 30 | }): TestFumaDb => { |
| 31 | let started: Promise<SqliteTestFumaDb> | undefined; |
| 32 | const start = () => { |
| 33 | if (!started) { |
| 34 | started = import("./sqlite-test-db").then(({ createSqliteTestFumaDb }) => |
| 35 | createSqliteTestFumaDb({ |
| 36 | tables: options.tables, |
| 37 | namespace: "executor_test", |
| 38 | path: options.dataDir ? `${options.dataDir}/test.db` : undefined, |
| 39 | }), |
| 40 | ); |
| 41 | } |
| 42 | return started; |
| 43 | }; |
| 44 | |
| 45 | const internal: FumaDb["internal"] = { |
| 46 | tables: options.tables, |
no test coverage detected