stop-and-error.json 742 B

123456789101112131415161718
  1. {
  2. "name": "verify-stop-and-error",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "n2", "name": "Stop", "type": "stop-and-error", "position": {"x": 0, "y": 100},
  6. "config": {"message": "deliberate stop"}},
  7. {"id": "n3", "name": "After", "type": "code", "position": {"x": 0, "y": 200},
  8. "config": {"code": "return { marker: 'should not run' };"}}
  9. ],
  10. "connections": [
  11. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"},
  12. {"sourceNodeId": "n2", "sourceOutput": "main", "targetNodeId": "n3", "targetInput": "data"}
  13. ],
  14. "expect": {
  15. "n2": {"status": "failed"}
  16. },
  17. "expectMissing": ["n3"]
  18. }