imaskjs: [Jest] Cannot read property 'createMask' of undefined

Cannot read property 'createMask' of undefined for jest, when import import IMask from 'imask';

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (21 by maintainers)

Most upvoted comments

@tarmooo Hi! i’ve just commited db7a14d new way to resolve globals inside mask. Can you please check if it solves your problem?

Yes, that actually fixed it. At least my snapshot tests are running now. Good job 😃 Waiting for release because it is not possible to install pacakge from subdirectory sadly.

I will try to find a solution