Testing reactivity: setInputs method

  1. We need to add values to inputs by using the session$setInputs() method.
testServer(server, {
  session$setInputs(x = 10)
  print(input$x)
})
#> 10