feat: initial release

This commit is contained in:
2024-07-06 22:52:11 +02:00
parent 97144fe45a
commit 82635f71ff
2 changed files with 16 additions and 1 deletions

View File

@@ -5,3 +5,18 @@
# Test Containers
Test container solution for running third party solutions through docker.
## Quick Start
```ts
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();
```