Closed
Description
Per #2511, t.try()
does not work in hooks. Rather than crashing we should fail the hook properly.
Snapshots work in hooks. It's OK in pre-test hooks, since those have unique titles, but the behavior is a little odd in the file hooks. I don't see how this is useful. Let's make snapshots-in-hooks fail. Unfortunately this is a breaking change, so we'll have to put this behind a flag.