Skip to content

Commit 33bcc07

Browse files
authored
Fix Kafka module imports (#740)
1 parent d11955c commit 33bcc07

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/modules/kafka/src/kafka-container.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import {
22
AbstractStartedContainer,
3+
BoundPorts,
34
Content,
45
GenericContainer,
56
InspectResult,
67
RandomUuid,
78
StartedTestContainer,
89
Uuid,
910
Wait,
11+
WaitStrategy,
1012
getContainerRuntimeClient,
13+
waitForContainer,
1114
} from "testcontainers";
12-
import { waitForContainer } from "testcontainers/src/wait-strategies/wait-for-container";
13-
import { BoundPorts } from "testcontainers/src/utils/bound-ports";
14-
import { WaitStrategy } from "testcontainers/src/wait-strategies/wait-strategy";
1515

1616
const KAFKA_PORT = 9093;
1717
const KAFKA_BROKER_PORT = 9092;

packages/testcontainers/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export { TestContainers } from "./test-containers";
1111
export { ContainerRuntimeClient, getContainerRuntimeClient, ImageName } from "./container-runtime";
1212
export { Uuid, RandomUuid, log } from "./common";
1313
export { getContainerPort, PortWithOptionalBinding, PortWithBinding, hasHostBinding } from "./utils/port";
14+
export { BoundPorts } from "./utils/bound-ports";
1415

1516
export { DockerComposeEnvironment } from "./docker-compose-environment/docker-compose-environment";
1617
export { StartedDockerComposeEnvironment } from "./docker-compose-environment/started-docker-compose-environment";
@@ -20,6 +21,8 @@ export { DownedDockerComposeEnvironment } from "./docker-compose-environment/dow
2021
export { Network, StartedNetwork, StoppedNetwork } from "./network/network";
2122

2223
export { Wait } from "./wait-strategies/wait";
24+
export { waitForContainer } from "./wait-strategies/wait-for-container";
25+
export { WaitStrategy } from "./wait-strategies/wait-strategy";
2326
export { HttpWaitStrategyOptions } from "./wait-strategies/http-wait-strategy";
2427
export { StartupCheckStrategy, StartupStatus } from "./wait-strategies/startup-check-strategy";
2528
export { PullPolicy, ImagePullPolicy } from "./utils/pull-policy";

0 commit comments

Comments
 (0)