@r-dent I wrapped the precondition checks (waitFor) in do/catch blocks and just used XCTFail so we do not have all those tries in the test. But maybe it makes sense to make precondition checks throwing (just like XCTUnwrap).
I created this draft PR for discussion. If you try to do a snapshot for a value in an array that doesn't exist there is not much I can do about but with this PR it should at least fail in case of a regression.
@r-dent I wrapped the precondition checks (waitFor) in do/catch blocks and just used XCTFail so we do not have all those tries in the test. But maybe it makes sense to make precondition checks throwing (just like XCTUnwrap). I created this draft PR for discussion. If you try to do a snapshot for a value in an array that doesn't exist there is not much I can do about but with this PR it should at least fail in case of a regression.