tests/testthat/_snaps/snippet.md

match_single_step snippet / uses the step keyword and indents the snippet

Code
  match_single_step(step)
Condition
  Error in `match_single_step()`:
  ! No step found for: "it passes"
  i Add a step definition:
    then("it passes", function(context) {
      pending()
    })

match_single_step snippet / keeps parameter placeholders in the snippet

Code
  match_single_step(step)
Condition
  Error in `match_single_step()`:
  ! No step found for: "I have 5 cucumbers in my basket"
  i Add a step definition:
    when("I have {int} cucumbers in my basket", function(int, context) {
      pending()
    })


Try the cucumber package in your browser

Any scripts or data that you put into this service are public.

cucumber documentation built on Oct. 5, 2026, 9:07 a.m.