Unit testing <google-map>, Export of name 'mapMarker' not found!

This page summarizes the projects mentioned and recommended in the original post on /r/Angular2

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • ng-mocks

    Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup

  • I recommend using MockModule from ng-mocks https://www.npmjs.com/package/ng-mocks

  • components

    Component infrastructure and Material Design components for Angular

  • 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.

  • 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.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts