I have a test that is failing with an uninformative error, when a value to be exported in exportTestValues() has a reactive dependency that hasn't been triggered. At worst, there should be a more informative error message. Ideally, there'd be a default value (or a condition object) that fills in for the value to be exported.
Here's a minimal reprex. y() is the reactive value that depends on a click event, so the test errors out if the click hasn't been triggered.
I have a test that is failing with an uninformative error, when a value to be exported in
exportTestValues()
has a reactive dependency that hasn't been triggered. At worst, there should be a more informative error message. Ideally, there'd be a default value (or a condition object) that fills in for the value to be exported.Here's a minimal reprex.
y()
is the reactive value that depends on a click event, so the test errors out if the click hasn't been triggered.app.R
clickfirst.R
(triggers click before trying to exporty()
)dontclick.R
(fails to trigger click before trying to exporty()
)Console output after running
testApp()
Session info