Add a function for preprocessing an output before taking a test snapshot
1 | snapshotPreprocessOutput(x, fun)
|
x |
A reactive which will be assigned to an output. |
fun |
A function that takes the output value as an input and returns a modified value. The returned value will be used for the test snapshot. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.