@testcontainers/postgresql
Advanced tools
Comparing version
@@ -6,3 +6,3 @@ import { AbstractStartedContainer, GenericContainer, StartedTestContainer } from "testcontainers"; | ||
private password; | ||
constructor(image?: string); | ||
constructor(image: string); | ||
withDatabase(database: string): this; | ||
@@ -9,0 +9,0 @@ withUsername(username: string): this; |
@@ -10,7 +10,7 @@ "use strict"; | ||
password = "test"; | ||
constructor(image = "postgres:13.3-alpine") { | ||
constructor(image) { | ||
super(image); | ||
this.withExposedPorts(POSTGRES_PORT); | ||
this.withWaitStrategy(testcontainers_1.Wait.forAll([testcontainers_1.Wait.forHealthCheck(), testcontainers_1.Wait.forListeningPorts()])); | ||
this.withStartupTimeout(120000); | ||
this.withStartupTimeout(120_000); | ||
} | ||
@@ -17,0 +17,0 @@ withDatabase(database) { |
{ | ||
"name": "@testcontainers/postgresql", | ||
"version": "10.28.0", | ||
"version": "11.0.0", | ||
"license": "MIT", | ||
@@ -33,8 +33,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/pg": "^8.11.6", | ||
"pg": "^8.12.0" | ||
"@types/pg": "^8.15.2", | ||
"pg": "^8.16.0" | ||
}, | ||
"dependencies": { | ||
"testcontainers": "^10.28.0" | ||
"testcontainers": "^11.0.0" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # Testcontainers | ||
[](https://github.com/testcontainers/testcontainers-node/actions/workflows/test.yml) | ||
[](https://github.com/testcontainers/testcontainers-node/actions/workflows/checks.yml) | ||
[](https://www.npmjs.com/package/testcontainers) | ||
@@ -20,3 +20,3 @@ [](https://www.npmjs.com/package/testcontainers) | ||
Copyright (c) 2018 - 2023 Cristian Greco and other authors. | ||
Copyright (c) 2018 - 2025 Cristian Greco and other authors. | ||
@@ -29,5 +29,4 @@ ## Contributing | ||
--- | ||
---- | ||
Join our [Slack workspace](https://slack.testcontainers.org/) | [Testcontainers OSS](https://java.testcontainers.org/) | [Testcontainers Cloud](https://www.testcontainers.cloud/) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18283
0.19%30
-3.23%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated