Trying to run jest tests on a component that imports Sweetalert.
I understand that I may need to use babel to be able to import and transform sweetalert correctly.
Can anyone assist me on this?
Error
My application also uses webpack and has a babel configuration
{ "presets": ["env", "react", "stage-2"] }
Trying to run jest tests on a component that imports Sweetalert. I understand that I may need to use babel to be able to import and transform sweetalert correctly.
Can anyone assist me on this?
Error
My application also uses webpack and has a babel configuration
{ "presets": ["env", "react", "stage-2"] }