MeasureTool-GoogleMaps-V3 icon indicating copy to clipboard operation
MeasureTool-GoogleMaps-V3 copied to clipboard

Cannot find module 'measuretool-googlemaps-v3'

Open jainvizz opened this issue 2 years ago • 0 comments

I have a project created using 'create-react-app' and I have one import in one of the file like this

import MeasureTool from 'measuretool-googlemaps-v3';

I am not facing any issue when I am running my project but when I am trying to run my test coverage using npm run test ("test": "react-scripts test --env=jsdom") I am getting this error Cannot find module 'measuretool-googlemaps-v3'

This is my jest configuration in package.json file

"jest": {
    "coverageReporters": [
      "text",
      "cobertura"
    ],
    "collectCoverageFrom": [
      "src/**/*.{js,jsx}",
      "!/node_modules/",
      "!src/index.js",
      "!src/registerServiceWorker.js",
      "!src/setupTests.js"
    ]
  }

It is giving error only for this package.

jainvizz avatar Sep 22 '22 06:09 jainvizz