@testcontainers/postgresql not working in Bun, but works in Node #1115
-
I tried running
I ran the import { describe, test, expect, beforeAll, afterAll } from "bun:test";
import { PostgreSqlContainer, StartedPostgreSqlContainer } from "@testcontainers/postgresql";
describe("CRUD", () => {
let container: StartedPostgreSqlContainer;
beforeAll(async () => {
container = await new PostgreSqlContainer("postgres").start();
});
afterAll(async () => {
await container.stop();
});
}); |
Beta Was this translation helpful? Give feedback.
Answered by
cristianrgreco
Aug 22, 2025
Replies: 1 comment 5 replies
-
I tried debugging and I get this error in
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Either way this seems an issue with bun connecting to the windows network pipe. There are several issues with bun so it's not officially supported with testcontainers