You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to truncate a snapshot to only certain specific lines. Something like:
expectSelfie(blah).lines(1).toBe_TODO() // first lineexpectSelfie(blah).lines(2).toBe_TODO() // first two linesexpectSelfie(blah).lines(-2).toBe_TODO() // last two linesexpectSelfie(blah).lines(-1).toBe_TODO() // last one linevarsnapshot = expectSelfie(blah)
snapshot.lines(2).toBe_TODO() // first two linessnapshot.lines(-2).toBe_TODO() // last two lines
I have also sometimes wanted to match a certain regex, like maybe
It would be nice to be able to truncate a snapshot to only certain specific lines. Something like:
I have also sometimes wanted to match a certain regex, like maybe
So far, each time that I have wanted this, I have found a better way to solve this by filtering before the snapshot gets taken...
The text was updated successfully, but these errors were encountered: