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 Containers
Test container solution for running third party solutions through docker. 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();
```

View File

@@ -1,6 +1,6 @@
{ {
"name": "@valkyr/testcontainers", "name": "@valkyr/testcontainers",
"version": "1.0.0-rc.1", "version": "1.0.0",
"exports": { "exports": {
"./postgres": "./containers/postgres.ts" "./postgres": "./containers/postgres.ts"
}, },