Handling Fiber Failure with Inline Snapshots in Vitest

Had a query about testing with snapshots, https://github.com/kieran-osgood/scribe/blob/develop/packages%2Fcli%2F__tests__%2Fgenerate.test.ts#L39 I've got some inline snapshots inside a generator which causes a fiber failure if it throws due to the snapshot changing, the result being that vitest can't extract the snapshot diff when printing the error - attempted to catch and throw the cause with isFiberFailure, anyone happen to know a handy way to achieve this? 😅
Was this page helpful?