Skip to content

Commit 0b03dd1

Browse files
authored
test(qc-test-runner): add env vars to enable debugging the test worker (#5578)
Add some env vars to make it easier to start the node inspector for the main thread and the test worker.
1 parent 21db422 commit 0b03dd1

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
#!/usr/bin/env bash
2-
node "$(dirname "${BASH_SOURCE[0]}")/../dist/qc-test-runner.js"
2+
3+
DEBUG_FLAGS=""
4+
5+
if [ -n "$QC_RUNNER_INSPECT_BRK" ]; then
6+
DEBUG_FLAGS="--inspect-brk --experimental-worker-inspection"
7+
elif [ -n "$QC_RUNNER_INSPECT" ]; then
8+
DEBUG_FLAGS="--inspect --experimental-worker-inspection"
9+
fi
10+
11+
# shellcheck disable=SC2086
12+
node $DEBUG_FLAGS "$(dirname "${BASH_SOURCE[0]}")/../dist/qc-test-runner.js"

0 commit comments

Comments
 (0)