Skip to content

Commit 123d726

Browse files
committed
Upgrade Testcontainers to v11
1 parent ab75f4e commit 123d726

File tree

3 files changed

+29
-42
lines changed

3 files changed

+29
-42
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"winston": "^3.17.0"
2020
},
2121
"devDependencies": {
22-
"@testcontainers/postgresql": "^10.28.0",
22+
"@testcontainers/postgresql": "^11.0.0",
2323
"supertest": "^7.1.1"
2424
}
2525
}

api/setupTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import config from "./utils/config.js";
88
let dbContainer;
99

1010
beforeAll(async () => {
11-
dbContainer = await new PostgreSqlContainer().start();
11+
dbContainer = await new PostgreSqlContainer("postgres:17-alpine").start();
1212
const url = new URL(dbContainer.getConnectionUri());
1313
url.searchParams.set("sslmode", url.searchParams.get("sslmode") ?? "disable");
1414
config.init({ DATABASE_URL: url.toString(), PORT: "0" });

package-lock.json

Lines changed: 27 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)