Skip to content

Commit 685c75d

Browse files
Copilotnetmindz
andcommitted
Fix wokwi-cli invocation to use current directory instead of diagram.json path
Co-authored-by: netmindz <[email protected]>
1 parent 1a66a9a commit 685c75d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/wokwi/run-simulator.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ echo "Web server will be available at http://localhost:8080"
2323
# Run wokwi-cli with timeout (in milliseconds)
2424
# The simulator will forward port 80 to localhost:8080
2525
# Note: wokwi-cli runs in foreground, so this needs to be backgrounded or run in a separate process
26-
wokwi-cli --timeout ${WOKWI_TIMEOUT}000 diagram.json
26+
# When run from the directory containing diagram.json and wokwi.toml, wokwi-cli will find them automatically
27+
wokwi-cli --timeout ${WOKWI_TIMEOUT}000 .

0 commit comments

Comments
 (0)