<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-configure-a-custom-test-container-on-the-eventstoredb-example-h2wivdeyn" -->

---
title: How to configure a custom Test Container on the...
description: A step-by-step guide to creating a custom Testcontainers setup for EventStoreDB in TypeScript. Covers extending GenericContainer and AbstractStartedContainer...
canonical: https://daily.dev/posts/how-to-configure-a-custom-test-container-on-the-eventstoredb-example-h2wivdeyn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to configure a custom Test Container on the EventStoreDB example | daily.dev
og:description: A step-by-step guide to creating a custom Testcontainers setup for EventStoreDB in TypeScript. Covers extending GenericContainer and AbstractStartedContainer...
og:url: https://daily.dev/posts/how-to-configure-a-custom-test-container-on-the-eventstoredb-example-h2wivdeyn
og:image: https://api.daily.dev/og/posts/H2wivDEYN.png
og:image:alt: How to configure a custom Test Container on the EventStoreDB example
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to configure a custom Test Container on the EventStoreDB example

**[Event-Driven by Oskar Dudycz](https://daily.dev/sources/event-driven-io)** · 7 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to creating a custom Testcontainers setup for EventStoreDB in TypeScript. Covers extending GenericContainer and AbstractStartedContainer to build EventStoreDBContainer and StartedEventStoreDBContainer classes, configuring default environment variables (insecure mode, in-memory storage, single-node cluster), exposing ports, enabling container reuse for faster test runs, and adding a getClient() helper. Also handles ARM64 (Apple M1) image selection automatically. The resulting implementation is available as the @event-driven-io/emmett-testcontainers npm package.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://event-driven.io/en/custom_test_container_on_esdb_example>

## Similar posts on daily.dev

- [Integration testing Node.js with Testcontainers](https://daily.dev/posts/integration-testing-node-js-with-testcontainers-nuqgjujki) · Flavio Copes · 1 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#architecture](https://daily.dev/tags/architecture), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/how-to-configure-a-custom-test-container-on-the-eventstoredb-example-h2wivdeyn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to configure a custom Test Container on the EventStoreDB example","url":"https://daily.dev/posts/how-to-configure-a-custom-test-container-on-the-eventstoredb-example-h2wivdeyn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-configure-a-custom-test-container-on-the-eventstoredb-example-h2wivdeyn"},"datePublished":"2026-06-17T11:26:11.533Z","dateModified":"2026-06-17T11:31:09.373Z","description":"A step-by-step guide to creating a custom Testcontainers setup for EventStoreDB in TypeScript. Covers extending GenericContainer and AbstractStartedContainer...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e1a08e38494ccb070387db6578efdf0c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e1a08e38494ccb070387db6578efdf0c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Event-Driven by Oskar Dudycz","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Event-Driven by Oskar Dudycz","logo":"https://media.daily.dev/image/upload/s--unDKCFQ0--/f_auto,q_auto/v1781695550/logos/event-driven-io?_a=BAMAMiWQ0","url":"https://daily.dev/sources/event-driven-io"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-configure-a-custom-test-container-on-the-eventstoredb-example-h2wivdeyn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,architecture,typescript","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Event-Driven by Oskar Dudycz","item":"https://daily.dev/sources/event-driven-io"},{"@type":"ListItem","position":3,"name":"How to configure a custom Test Container on the EventStoreDB example"}]}
```

