Our great sponsors
-
ng-mocks
Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I recommend using MockModule from ng-mocks https://www.npmjs.com/package/ng-mocks
Did you try using MockModule? I think this would create all the needed dependencies for you. If that doesn't work for you, I suggest looking at the unit tests from the angular repo for MapMarker. It looks like Google has created some tools for testing the component you might be able to use. If not, you can copy them from the repo. When struggling to test something, I find going to the repo for the project is a good idea. They usually have some tricks I wasn't aware of.
Related posts
- A new material timepicker component
- Material: Reusable Autocomplete component
- Had an accessibility audit. A lot of the findings we can tie back to open issues with angular material. How are you all handling situations like this?
- Angular: MatPaginator Custom Styling
- How to open and close Angular mat menu on hover