Closed rlam3 closed 3 years ago
same here,
this is my config:
buildModules: [
....
['nuxt-fontawesome', {
component: 'fa',
imports: [
{
set: '@fortawesome/free-solid-svg-icons',
icons: ['fas']
},
{
set: '@fortawesome/free-regular-svg-icons',
icons: ['far']
}
]
}]
],
All works good in the components but getting the annoying warning when testing with jest.
@sebalaini https://aznric3boi91.medium.com/5-mins-to-fix-jest-tests-for-app-with-unknown-custom-element-did-you-register-the-component-23ae75d5620b check this out stubbing fa
helped my test pass.
@rlam3 that helped :) thank you
nuxt.config.js
Jest test case
pages/order/index.vue
error message.
Hi, I'm running into the following error with this module with my jest tests.
I also see that another issue similar to mine is open but didn't provide a definitive answer. https://github.com/nuxt-community/fontawesome-module/issues/21