Git Product home page Git Product logo

create-react-app-esri-loader's People

Contributors

davetimmins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

create-react-app-esri-loader's Issues

TypeError: Cannot set property 'esriLoader' of undefined

Hi, I am not able to successfully execute test for React components which contain esri components

Please see the attached files
Donor.zip
Donor.js > contains arcgis components using esri-loader and dojo
Donor.test.js > Contain simple unit test for Donor component

Below the stack trace
jest -u
FAIL app\test\Donor.test.js โ— Component: Donor rendered

TypeError: Cannot set property 'esriLoader' of undefined

  at bootstrap (node_modules/esri-loader/dist/esri-loader.js:32:34)
  at EsriLoader.componentDidMount (node_modules/esri-loader-react/lib/index.js:37:33)
  at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:264:25
  at measureLifeCyclePerf (node_modules/react-test-renderer/lib/ReactCompositeComponent.js:75:12)
  at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:263:11
  at CallbackQueue.notifyAll (node_modules/react-test-renderer/lib/CallbackQueue.js:76:22)
  at ReactTestReconcileTransaction.close (node_modules/react-test-renderer/lib/ReactTestReconcileTransaction.js:36:26)
  at ReactTestReconcileTransaction.closeAll (node_modules/react-test-renderer/lib/Transaction.js:209:25)
  at ReactTestReconcileTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:156:16)
  at batchedMountComponentIntoNode (node_modules/react-test-renderer/lib/ReactTestMount.js:69:27)
  at ReactDefaultBatchingStrategyTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:143:20)
  at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactDefaultBatchingStrategy.js:62:26)
  at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactUpdates.js:97:27)
  at Object.render (node_modules/react-test-renderer/lib/ReactTestMount.js:128:18)
  at Object.<anonymous> (app/test/Donor.test.js:8:47)
  at Promise.resolve.then.el (node_modules/p-map/index.js:42:16)

Can you please tell me how to proceed or send me a reference to resolve the same.

Thanks & Regards,
Kunal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.