react-flatpickr icon indicating copy to clipboard operation
react-flatpickr copied to clipboard

TypeError: _this.flatpickr.setDate is not a function in Jest after upgrading to CRA 5

Open geoffreyteng opened this issue 2 years ago • 0 comments

upgraded react-scripts from ^4.0.3 to ^5.0.1.

every single jest tests that uses flatpickr is failing with the error "TypeError: _this.flatpickr.setDate is not a function"

this is blocking my ability to upgrade CRA and utilise some new features.

geoffreyteng avatar Aug 15 '22 13:08 geoffreyteng