I would like to test my project with Jest framework. Problem wen I run the test, the canvas element was undefined. I think it should be mock canvas, but I don’t know how doing it.
Sorry for my bad English, if you don’t understand something or you need more detail ask me.
I can explain in french if you want.
Thank you for your help
My project :
Result of my test: