1.3.10 • Published 4 months ago

@stickyjs/testcontainers v1.3.10

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Test Containers

@stickyjs/testcontainers

Providing opinionated containers that follows the testcontainers-node Fluent API design.

  • PostgreSqlContainer - for a Postgres database docker container
  • LocalstackContainer - for a Localstack cloud docker container
  • RedisContainer - for a Redis docker container

Example with PostgresSqlContainer:

import { PostgreSqlContainer, StartedPostgreSqlContainer } from '@stickyjs/testcontainers';

let postgres: StartedPostgreSqlContainer;

beforeAll(async () => {
  postgres = await new PostgreSqlContainer().start();
});

afterAll(async () => {
  await postgres.stop();
});

With network:

import { PostgreSqlContainer, RedisContainer, Network } from '@stickyjs/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();
});
1.3.10

4 months ago

1.3.9

4 months ago

1.3.8

4 months ago

1.3.7

5 months ago

1.3.6

5 months ago

1.3.5

5 months ago

1.2.8

9 months ago

1.2.7

9 months ago

1.2.6

9 months ago

1.3.4

8 months ago

1.2.5

9 months ago

1.3.3

8 months ago

1.2.4

10 months ago

1.3.2

9 months ago

1.2.3

10 months ago

1.3.1

9 months ago

1.2.2

10 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago