cedricdelpoux / cedricdelpoux/react-google-maps-loader
Unable to test due to loadig issue with GoogleMapsLoader
- Dominant language
- JavaScript
- Stars
- 52
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
Getting error when I ru my test as below:
console.error node_modules/react-test-renderer/cjs/react-test-renderer.development.js:6309
The above error occurred in the component:
in GoogleMapsLoader (at GooglePlacesSuggest.js:72)
● UserDetails component › matches the snapshot
TypeError: Cannot read property 'parentNode' of undefined
at _addScript (node_modules/little-loader/lib/little-loader.js:43:17)
at _lload (node_modules/little-loader/lib/little-loader.js:209:7)
at loadGoogleMapsSdk (node_modules/react-google-maps-loader/lib/loadGoogleMapsSdk/index.js:43:34)
at GoogleMapsLoader.componentDidMount (node_modules/react-google-maps-loader/lib/index.js:45:37)
at commitLifeCycles (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:6444:22)
at commitAllLifeCycles (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7540:7)
at HTMLUnknownElement.callCallback (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:1899:14)
Contributor guide
Research direction
Start by running the UserDetails snapshot test and inspect GooglePlacesSuggest.js at line 72, where GoogleMapsLoader is used. Trace the reported componentDidMount path through loadGoogleMapsSdk and little-loader's _addScript; done means the snapshot test runs without the parentNode TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100