()
| 124 | } |
| 125 | |
| 126 | function resolveNativeBinding() { |
| 127 | if (process.env.CHATLAB_TEST_SQLITE_NATIVE_BINDING) { |
| 128 | return process.env.CHATLAB_TEST_SQLITE_NATIVE_BINDING |
| 129 | } |
| 130 | const repoNativeBinding = path.resolve('apps/cli/native/better_sqlite3.node') |
| 131 | return fs.existsSync(repoNativeBinding) ? repoNativeBinding : undefined |
| 132 | } |
| 133 | |
| 134 | function unixTs(iso) { |
| 135 | return Math.floor(Date.parse(iso) / 1000) |
no outgoing calls
no test coverage detected