0.8.5 • Published 12 months ago
@birthdayresearch/sticky-testcontainers v0.8.5
Test Containers
@birthdayresearch/sticky-testcontainers
Providing opinionated containers that follows the testcontainers-node
Fluent API design.
PostgreSqlContainer
- for a Postgres database docker containerLocalstackContainer
- for a Localstack cloud docker containerRedisContainer
- for a Redis docker container
Example with PostgresSqlContainer:
import { PostgreSqlContainer, StartedPostgreSqlContainer } from '@birthdayresearch/sticky-testcontainers';
let postgres: StartedPostgreSqlContainer;
beforeAll(async () => {
postgres = await new PostgreSqlContainer().start();
});
afterAll(async () => {
await postgres.stop();
});
With network:
import { PostgreSqlContainer, RedisContainer, Network } from '@birthdayresearch/sticky-testcontainers';
beforeAll(async () => {
const network = await new Network().start();
const postgres = await new PostgreSqlContainer().withNetwork(network).start();
const redis = await new RedisContainer().withNetwork(network).start();
});
afterAll(async () => {
await postgres.stop();
await redis.stop();
await network.stop();
});
0.8.5
12 months ago
0.8.1
12 months ago
0.8.0
12 months ago
0.7.1
12 months ago
0.6.2
12 months ago
0.7.0
12 months ago
0.6.1
12 months ago
0.6.0
12 months ago
0.5.14
1 year ago
0.5.12
1 year ago
0.5.13
1 year ago
0.5.10
1 year ago
0.5.11
1 year ago
0.5.9
1 year ago
0.5.8
1 year ago
0.5.7
1 year ago
0.5.4
1 year ago
0.5.3
1 year ago
0.5.6
1 year ago
0.5.5
1 year ago
0.5.0
1 year ago
0.4.1
1 year ago
0.5.2
1 year ago
0.5.1
1 year ago
0.3.6
1 year ago
0.3.8
1 year ago
0.3.7
1 year ago
0.4.0
1 year ago
0.3.2
1 year ago
0.3.1
1 year ago
0.3.0
1 year ago