Stencil Jest Testing

I am using a custom element library built in Stencil for my application which is also built with Stencil. When attempting to write Jest tests for my application, I encountered an issue where the application is unable to access elements from the custom elements library. How can I resolve this problem?