Skip to content

Commit d0c4a11

Browse files
ZvonimirZvonimir
authored andcommitted
docs(kafka-streams-demo): fix node:test command + include subscribe helper
Reviewer blocker. Documented `node --test demo/kafka-streams/test/` fails with MODULE_NOT_FOUND because node:test does not accept a bare directory as a positional spec. Use a glob (`test/*.mjs`) so all four helper test files are picked up, and add lib/subscribe.mjs to the helpers list now that it ships alongside the originals.
1 parent d2ceb01 commit d0c4a11

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

demo/kafka-streams/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ between steps.
7575
## Tests
7676

7777
The pure helpers (`lib/assertions.mjs`, `lib/poll.mjs`,
78-
`lib/daemon-auth.mjs`) have `node:test` coverage under
79-
`demo/kafka-streams/test/`:
78+
`lib/daemon-auth.mjs`, `lib/subscribe.mjs`) have `node:test` coverage
79+
under `demo/kafka-streams/test/`:
8080

8181
```sh
82-
node --test demo/kafka-streams/test/
82+
node --test demo/kafka-streams/test/*.mjs
8383
```
8484

8585
The full runtime gate (`run.mjs`) is intentionally an

0 commit comments

Comments
 (0)