Skip to content

Commit fc631a4

Browse files
committed
Add debugging instructions to Node integration tests README
1 parent 0ce6dc5 commit fc631a4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

dev-packages/node-integration-tests/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,19 @@ To run tests with Vitest's watch mode:
4747
To filter tests by their title:
4848

4949
`yarn test -t "set different properties of a scope"`
50+
51+
## Debugging Tests
52+
53+
To enable verbose logging during test execution, set the `DEBUG` environment variable:
54+
55+
`DEBUG=1 yarn test`
56+
57+
When `DEBUG` is enabled, the test runner will output:
58+
- Test scenario startup information (path, flags, DSN)
59+
- Docker Compose output when using `withDockerCompose`
60+
- Child process stdout and stderr output
61+
- HTTP requests made during tests
62+
- Process errors and exceptions
63+
- Line-by-line output from test scenarios
64+
65+
This is particularly useful when debugging failing tests or understanding the test execution flow.

0 commit comments

Comments
 (0)