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
This should stub the CanvasRenderingContext2D and create an ascii representation that is written to a file to check for changes later.
expect(context).toMatchCanvasSnapshot();
expect.extend({toMatchCanvasSnapshot(received,argument){constpass=//;if(pass){return{message: ()=>`expected ${received} not to match snapshot ${snapshot}`,pass: true,};}else{return{message: ()=>`expected ${received} to match snapshot ${snapshot}`,pass: false,};}}});
The text was updated successfully, but these errors were encountered:
This should stub the CanvasRenderingContext2D and create an ascii representation that is written to a file to check for changes later.
The text was updated successfully, but these errors were encountered: