[Vuejs]-Vue-pdf-embed Inline worker is not supported on jest

1👍

I came with a reasonable answer: mock the component:

In jest.init.ts, which I refer to in my jest.config.ts above, I put the following:

jest.mock('vue-pdf-embed', () => () => '<mock-vue-pdf-embed/>');

and now everything works just fine 😉

Leave a comment