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
constsnapshot=require('snap-shot-it')it('works',()=>{snapshot('foo')snapshot('bar')})it('works again',()=>{snapshot(42)snapshot(101)// throw new Error('nope')})it('uses exact spec name',()=>{snapshot('this name',1)snapshot('this name again',2)})
the snapshot saved
exports['works 1']=`foo`exports['works 2']=`bar`exports['works again 1']=42exports['works again 2']=101exports['this name']=1exports['this name again']=2
Then let's comment out the snapshot "this name"
it('uses exact spec name',()=>{// snapshot('this name', 1)snapshot('this name again',2)})
Run again and we get the snapshot
exports['this name again']=2exports['works 1']=`foo`exports['works 2']=`bar`exports['works again 1']=42exports['works again 2']=101
So the remaining snapshot "this name again" jumped all the way to the top of some reason
if the sorting is turned off using options
The text was updated successfully, but these errors were encountered: