milespratt / bingmaps-react

An easy to use Bing Maps React component.
https://bingmaps-react.netlify.app
MIT License
21 stars 19 forks source link

Cannot find module 'bingmaps-react' while testing with jest #32

Closed Spomsoree closed 2 years ago

Spomsoree commented 3 years ago

The module works fine while running the app, but we get the following error in the jest test environment:

Cannot find module 'bingmaps-react' from 'src/components/stateless/atomic/Map/index.js'

Is there a workaround to this problem, or a simple fix I'm missing?

Ellezique commented 3 years ago

I tried with testing-library/react and jest - same error.

milespratt commented 2 years ago

@Spomsoree @Ellezique if you're still having issues, the latest version 1.1.4 should resolve them. Please let me know.

Spomsoree commented 2 years ago

Worked for me, thank you very much!