Closed zwacky closed 5 years ago
Yeah, I think it might be related to how ionicons are exported, I'll give it a try on a demo project
Have you given this a look? I assume the issue is with the svg ionicons imported by @ionic/core
Hey @zwacky I've setup this repo with vue CLI: https://github.com/michaeltintiuc/ionic-vue-jest-test
The tests run fine using ionic/vue including the router.
Can you share a test file that fails?
So you used the vue CLI. I was using the ionic CLI to create the new project and it looks quite different. Will investigate what exactly causes this and then propose it to ionic itself probably.
I don't see this being a problem with ionic-vue itself. Cheers!
Doesn't look like it's the setup. I expanded the ionic-vue-jest-test repo with two test cases:
This is an issue with @ionic/core and ionicons as per this issue: https://github.com/ionic-team/ionic/issues/17577
As a temporary solution copy the mocks dir from here: https://github.com/ionic-team/ionic/tree/master/react/__mocks__
Hey there, I wanted to run my tests with Jest and came across this issue:
Just wanted to collect the issue for later. Cheers!