mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
test(worktree): address embedded postgres helper review feedback
- probe host support on every platform instead of special-casing darwin - re-export the db package helper from server and cli tests Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
c916626cef
commit
3c1ebed539
3 changed files with 12 additions and 300 deletions
|
|
@ -65,10 +65,6 @@ function formatEmbeddedPostgresError(error: unknown): string {
|
|||
}
|
||||
|
||||
async function probeEmbeddedPostgresSupport(): Promise<EmbeddedPostgresTestSupport> {
|
||||
if (process.platform !== "darwin") {
|
||||
return { supported: true };
|
||||
}
|
||||
|
||||
const dataDir = fs.mkdtempSync(path.join(os.tmpdir(), "paperclip-embedded-postgres-probe-"));
|
||||
const port = await getAvailablePort();
|
||||
const EmbeddedPostgres = await getEmbeddedPostgresCtor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue