2024-07-19 20:07:34 +02:00
2024-07-19 17:14:59 +02:00
2024-07-19 17:21:46 +02:00
2024-07-19 20:07:34 +02:00
2024-07-19 20:07:34 +02:00
2024-07-19 18:49:37 +02:00
2024-07-19 19:49:22 +02:00
2024-07-06 21:21:10 +02:00
2024-07-19 20:07:34 +02:00
2024-07-19 20:07:34 +02:00
2024-07-19 20:07:34 +02:00
2024-07-06 22:52:11 +02:00

Test Containers

Test container solution for running third party solutions through docker.

Quick Start

import { PostgresTestContainer } from "@valkyr/testcontainers/postgres";

const container = await PostgresTestContainer.start("postgres:16");

await container.create("db");
await container.client("db")`SELECT 1`;

console.log(container.url("db")); // => postgres://postgres:postgres@127.0.0.1:5432/db

await container.stop();
Description
Simple to spin up docker containers for integration testing
Readme 116 KiB
Languages
TypeScript 98.1%
JavaScript 1.9%