This updates assertInlineSnapshot to match against an optional, so that when nil is provided, the snapshot helper can scrub the trailing snapshot closure.
This can be used by downstream helpers, like assertMacro to "un-record" certain snapshots when it makes sense to: e.g. when removing an expansion and recording a new diagnostic instead.
This updates
assertInlineSnapshot
to match against an optional, so that whennil
is provided, the snapshot helper can scrub the trailing snapshot closure.This can be used by downstream helpers, like
assertMacro
to "un-record" certain snapshots when it makes sense to: e.g. when removing anexpansion
and recording a newdiagnostic
instead.