snapshotPreprocessInput function

Add a function for preprocessing an input before taking a test snapshot

Add a function for preprocessing an input before taking a test snapshot

snapshotPreprocessInput(inputId, fun, session = getDefaultReactiveDomain())

Arguments

  • inputId: Name of the input value.
  • fun: A function that takes the input value and returns a modified value. The returned value will be used for the test snapshot.
  • session: A Shiny session object.
  • Maintainer: Winston Chang
  • License: GPL-3 | file LICENSE
  • Last published: 2024-12-14