name: "JavaScript Output Capture Test"
description: "Verifies output command captures stdout correctly"
target:
program: "../fixtures/simple.js"
args: []
adapter: "js-debug"
stop_on_entry: true
steps:
- action: command
command: "break main"
expect:
success: true
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "breakpoint"
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "terminated"
- action: check_output
contains: "Sum:"
- action: check_output
contains: "Factorial:"
- action: command
command: "output --tail 1"
expect:
output_contains: "Factorial:"