Skip to content

Commit 4542bbd

Browse files
add docs
1 parent 476b4ab commit 4542bbd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/modules/nats.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ npm install @testcontainers/nats --save-dev
2222
[Set credentials:](../../packages/modules/nats/src/nats-container.test.ts) inside_block:credentials
2323
<!--/codeinclude-->
2424

25+
<!--codeinclude-->
26+
[No credentials:](../../packages/modules/nats/src/nats-container.test.ts) inside_block:noCredentials
27+
<!--/codeinclude-->
28+
2529
<!--codeinclude-->
2630
[Enable JetStream:](../../packages/modules/nats/src/nats-container.test.ts) inside_block:jetstream
2731
<!--/codeinclude-->

packages/modules/nats/src/nats-container.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("NatsContainer", { timeout: 180_000 }, () => {
2020

2121
await container.stop();
2222
});
23-
23+
// noCredentials {
2424
it("should start, connect and close when noCredentials is true", async () => {
2525
const container = await new NatsContainer(IMAGE).withCredentials(false).start();
2626

@@ -34,6 +34,7 @@ describe("NatsContainer", { timeout: 180_000 }, () => {
3434

3535
await container.stop();
3636
});
37+
//}
3738

3839
it("should start, connect and close using scratch image", async () => {
3940
const container = await new NatsContainer("nats:2.11").start();

0 commit comments

Comments
 (0)