snapshotPreprocessOutput(x, fun)
Add a function for preprocessing an output before taking a test snapshot